Community
Participate
Working Groups
With JDT included in Eclipse 19-06 M1, using the quick action 'Add missing case statements' will generate unordered case statements. For example, with this enum: public enum ENodeIndex { TIP, LEFT, MIDDLE, RIGHT } The generated code is: switch (index) { case LEFT: break; case MIDDLE: break; case RIGHT: break; case TIP: break; default: break; } I think it would be better to keep the enum order.
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.
Hello, I also encounter this issue, I think the 'Add missing case statements' action should keep the enum order. But, as it's a matter of point of view, there should be an option in the preferences to keep the current behavior (i.e. alphabetical order).