Community
Participate
Working Groups
Created attachment 277778 [details] Screenshot void throwing (int i) { int next = switch (i) { case 1 -> 2; default -> try { throw new Exception(); } catch (Exception e) { } }; } See attached screenshot for the error messages. No ':' is used in the code and expecting a ':' to be added is also not correct.
Initial Dev Notes: At the parsing stage, compilation enters the recovery stage and the recovery parser takes a different route (directly going to consumeDefaultLabel() instead of going to consumeDefaultLabelExpr and hence does not set flag this (to be an arrow). This flag is consumed later in SE analysis which currently does not have a true value for arrow. This causes the "mixing of : and -> error" to be shown.
Bulk move to 4.14
Bulk move out of 4.13
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.