From 1119499562bd94e2601d301a0126dc02f3d5d472 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 28 May 2014 21:56:57 +0400 Subject: [PATCH] accept inonsistent anonymous classes (with warning) E.g. Groovy-compiled anonymouses extend both parent class and GroovyObject. --- src/de/fernflower/main/ClassesProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/fernflower/main/ClassesProcessor.java b/src/de/fernflower/main/ClassesProcessor.java index 07ca4eb..39516a1 100644 --- a/src/de/fernflower/main/ClassesProcessor.java +++ b/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 {