mirror of
https://github.com/moparisthebest/fernflower
synced 2024-11-23 09:42:18 -05:00
accept inonsistent anonymous classes (with warning)
E.g. Groovy-compiled anonymouses extend both parent class and GroovyObject.
This commit is contained in:
parent
4996a16139
commit
1119499562
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user