accept inonsistent anonymous classes (with warning)
E.g. Groovy-compiled anonymouses extend both parent class and GroovyObject.
This commit is contained in:
@@ -205,7 +205,7 @@ public class ClassesProcessor {
|
|||||||
|
|
||||||
if(interfaces.length > 0) {
|
if(interfaces.length > 0) {
|
||||||
if(interfaces.length > 1) {
|
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);
|
nestednode.anonimousClassType = new VarType(cl.getInterface(0), true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user