fixed a typo that prevented the guessing of class hierarchy

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@878 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 7d6516d066
commit ba2b6103af
  1. 7
      jode/jode/bytecode/ClassInfo.java

@ -243,7 +243,6 @@ public class ClassInfo extends BinaryInfo {
/* always read modifiers, name, super, ifaces */ /* always read modifiers, name, super, ifaces */
{ {
status |= HIERARCHY;
modifiers = input.readUnsignedShort(); modifiers = input.readUnsignedShort();
String className = cpool.getClassName(input.readUnsignedShort()); String className = cpool.getClassName(input.readUnsignedShort());
if (!name.equals(className)) if (!name.equals(className))
@ -256,6 +255,7 @@ public class ClassInfo extends BinaryInfo {
interfaces[i] = ClassInfo.forName interfaces[i] = ClassInfo.forName
(cpool.getClassName(input.readUnsignedShort())); (cpool.getClassName(input.readUnsignedShort()));
} }
status |= HIERARCHY;
} }
/* fields */ /* fields */
@ -554,9 +554,10 @@ public class ClassInfo extends BinaryInfo {
} catch (NoClassDefFoundError ex2) { } catch (NoClassDefFoundError ex2) {
} }
try { try {
if (clazz != null) if (clazz != null) {
loadInfoReflection(clazz, howMuch); loadInfoReflection(clazz, howMuch);
return; return;
}
} catch (SecurityException ex2) { } catch (SecurityException ex2) {
GlobalOptions.err.println GlobalOptions.err.println
(ex2+" while collecting info about class " + name + "."); (ex2+" while collecting info about class " + name + ".");

Loading…
Cancel
Save