diff --git a/src/de/fernflower/main/ClassWriter.java b/src/de/fernflower/main/ClassWriter.java index 68b4689..54a490e 100644 --- a/src/de/fernflower/main/ClassWriter.java +++ b/src/de/fernflower/main/ClassWriter.java @@ -698,7 +698,7 @@ public class ClassWriter { boolean isInterface = (cl.access_flags & CodeConstants.ACC_INTERFACE) != 0; boolean isAnnotation = (cl.access_flags & CodeConstants.ACC_ANNOTATION) != 0; - + boolean isEnum = (cl.access_flags & CodeConstants.ACC_ENUM) != 0 && DecompilerContext.getOption(IFernflowerPreferences.DECOMPILE_ENUM); boolean isDeprecated = mt.getAttributes().containsKey("Deprecated"); String indstr = InterpreterUtil.getIndentString(indent); @@ -861,10 +861,11 @@ public class ClassWriter { lastparam_index = i; } } - + boolean firstpar = true; - int index = thisvar?1:0; - for(int i=0;i sigFields = null; + boolean isEnum = false; if(functype == TYP_INIT) { ClassNode newnode = DecompilerContext.getClassprocessor().getMapRootClasses().get(classname); @@ -328,13 +322,16 @@ public class InvocationExprent extends Exprent { sigFields.set(0, new VarVersionPaar(-1, 0)); } } + isEnum = (newnode.classStruct.access_flags & CodeConstants.ACC_ENUM) != 0 && + DecompilerContext.getOption(IFernflowerPreferences.DECOMPILE_ENUM); } } Set setAmbiguousParameters = getAmbiguousParameters(); boolean firstpar = true; - for(int i=0;i