Add early guard and more detailed error message for methods not matching scala signatures.

This commit is contained in:
Chicken-Bones committed 2014-02-19 19:16:43 +10:00
1 parent ec82adef1f
commit e80bb3190a
1 file changed
+5 -1
@@ -603,7 +603,11 @@ object ASMMixinCompiler
}
else if(!sym.name.equals("$init$") && !sym.isPrivate)
{
methods+=findMethod(new ObfMapping(cnode.name, sym.name, desc), cnode)
val map = new ObfMapping(cnode.name, sym.name, desc)
val method = findMethod(map, cnode)
if(method == null)
throw new RuntimeException("Unable to add multipart trait: "+map+" found in scala signature but not in class file. Most likely an obfuscation issue.")
methods+=method
}
}
else