diff --git a/src/org/apache/bcel/generic/ReferenceType.java b/src/org/apache/bcel/generic/ReferenceType.java index b61db28..8bb497a 100644 --- a/src/org/apache/bcel/generic/ReferenceType.java +++ b/src/org/apache/bcel/generic/ReferenceType.java @@ -265,9 +265,9 @@ public abstract class ReferenceType extends Type { // every ArrayType? } if (((this instanceof ObjectType) && ((ObjectType) this) - .referencesInterface()) + .referencesInterfaceExact()) || ((t instanceof ObjectType) && ((ObjectType) t) - .referencesInterface())) { + .referencesInterfaceExact())) { return Type.OBJECT; // TODO: The above line is correct comparing to the vmspec2. But one // could