accept inonsistent anonymous classes (with warning)

E.g. Groovy-compiled anonymouses extend both parent class and GroovyObject.
master
Roman Shevchenko 10 years ago
parent 4996a16139
commit 1119499562
  1. 2
      src/de/fernflower/main/ClassesProcessor.java

@ -205,7 +205,7 @@ public class ClassesProcessor {
if(interfaces.length > 0) {
if(interfaces.length > 1) {
throw new RuntimeException("Inconsistent anonymous class definition: "+cl.qualifiedName);
DecompilerContext.getLogger().writeMessage("Inconsistent anonymous class definition: "+cl.qualifiedName, IFernflowerLogger.WARNING);
}
nestednode.anonimousClassType = new VarType(cl.getInterface(0), true);
} else {

Loading…
Cancel
Save