You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enum E {
A,
B,
}
public class X {
public static void main(String[] args) {
E e = E.A;
switch (e) {
case A : System.out.println("A");
break;
case B: System.out.println("B");
break;
case null : System.out.println("null");
break;
}
}
}
Code produced by ECJ on master/HEAD contains the field $SWITCH_TABLE$E and the method $SWITCH_TABLE$E() which are not needed for an enhanced switch which will use indy enumSwitch bootstrap method to switch.
Found by code inspection and white box testing:
Consider the following program:
Code produced by ECJ on master/HEAD contains the field
$SWITCH_TABLE$E
and the method$SWITCH_TABLE$E()
which are not needed for an enhanced switch which will use indy enumSwitch bootstrap method to switch.The text was updated successfully, but these errors were encountered: