accept inonsistent anonymous classes (with warning)

E.g. Groovy-compiled anonymouses extend both parent class and GroovyObject.
This commit is contained in:
Roman Shevchenko 2014-05-28 21:56:57 +04:00
parent 4996a16139
commit 1119499562

View File

@ -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 {