Community
Participate
Working Groups
Syntax coloring of Auto(un)boxed values has some issues with the ternary operator. Consider the following cases: (t() is just a boolean function to get the compiler to not ignore the else case) void autoBoxing() { Long l = t() ? 20L : 0L; // working as inteded, both marked } ------------------------- void autoBoxing() { long l = t() ? getLong() : 0L; // working as inteded, getLong() is marked } private Long getLong() { return Long.valueOf(0L); } ------------------------- void autoBoxing() { long l = t() ? getLong() : getLong(); // NOT working, nothing marked } private Long getLong() { return Long.valueOf(0L); } ------------------------- void autoBoxing() { Long l = t() ? getLong() : 0L; // NOT working, only 0L marked } private long getLong() { return 0L; } ------------------------- void autoBoxing() { Long l = t() ? getLong() : getLong(); // NOT working, nothing marked } private long getLong() { return 0L; } The problem with all these cases is that "INVOKEVIRTUAL Long.longValue() : long" does not come immediately after the long getter/loader but in another bytecode branch after a "GOTO" with a "FRAME SAME1 long" in between.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.