git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@193 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -417,12 +417,13 @@ public class MemberResolver implements TokenId { | |||
public static CtClass getSuperclass(CtClass c) throws CompileError { | |||
try { | |||
return c.getSuperclass(); | |||
} | |||
catch (NotFoundException e) { | |||
throw new CompileError("cannot find the super class of " | |||
+ c.getName()); | |||
CtClass sc = c.getSuperclass(); | |||
if (sc != null) | |||
return sc; | |||
} | |||
catch (NotFoundException e) {} | |||
throw new CompileError("cannot find the super class of " | |||
+ c.getName()); | |||
} | |||
public static String javaToJvmName(String classname) { |