Use fully qualified static field name in conflict #541

This commit is contained in:
Oleg Panashchenko
2017-04-24 14:22:41 +03:00
committed by Egor.Ushakov
parent 0b442fc64b
commit 2a213aa4a0
24 changed files with 296 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
package pkg;
import java.util.concurrent.TimeUnit;
/**
* This illustrates a bug in fernflower as of 20170421. Decompiled output of this class does not compile back.
*/
public class TestSwitchOnEnum {
int myInt;
public int testSOE(TimeUnit t) {
// This creates anonymous SwitchMap inner class.
switch (t) {
case SECONDS:
return 1;
}
return 0;
}
}