bug fix: interfaces are objects

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@701 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent bf4e1791de
commit 604cfa5639
  1. 3
      jode/jode/jvm/CodeVerifier.java

@ -204,7 +204,8 @@ public class CodeVerifier implements Opcodes {
|| t2.getTypeCode() == Type.TC_ARRAY)) { || t2.getTypeCode() == Type.TC_ARRAY)) {
if (t1.getTypeCode() == Type.TC_ARRAY) { if (t1.getTypeCode() == Type.TC_ARRAY) {
if (t2.getTypeCode() == Type.TC_CLASS) if (t2.getTypeCode() == Type.TC_CLASS)
return (t2 == Type.tObject); return (((ClassInterfacesType)t2).getClazz()
== ClassInfo.javaLangObject);
Type e1 = ((ArrayType)t1).getElementType(); Type e1 = ((ArrayType)t1).getElementType();
Type e2 = ((ArrayType)t2).getElementType(); Type e2 = ((ArrayType)t2).getElementType();
if ((e1.getTypeCode() == Type.TC_CLASS if ((e1.getTypeCode() == Type.TC_CLASS

Loading…
Cancel
Save