IDEA-172200 Decompiler switch-on-enum multiple switches in same class generates wrong cases for all but the first switch-on-enum

This commit is contained in:
Egor.Ushakov
2017-05-05 13:10:53 +03:00
parent bbc76e7cb4
commit 17d4894848
8 changed files with 91 additions and 2 deletions

View File

@@ -19,4 +19,30 @@ public class TestSwitchOnEnum {
}
return 0;
}
static class Example {
enum A { A1, A2}
enum B { B1, B2}
void test(A a, B b){
switch (a){
case A1:
System.out.println("A1");
break;
case A2:
System.out.println("A2");
break;
}
switch (b){
case B1:
System.out.println("B1");
break;
case B2:
System.out.println("B2");
break;
}
}
}
}