isOfType should return true on (class, interface)

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1107 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 25 years ago
parent e598216b97
commit 8e6f442ee5
  1. 5
      jode/jode/jvm/CodeVerifier.java.in

@ -207,8 +207,9 @@ public class CodeVerifier implements Opcodes {
return t2.equals("Ljava/lang/Object;");
}
if (c1 == 'L' && c2 == 'L') {
return TypeSignature.getClassInfo(t2)
.superClassOf(TypeSignature.getClassInfo(t1));
ClassInfo wantedType = TypeSignature.getClassInfo(t2);
return wantedType.isInterface()
|| wantedType.superClassOf(TypeSignature.getClassInfo(t1));
}
return false;
}

Loading…
Cancel
Save