Handling of interfaces in SimpleVerifier

Michael Orlov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

I don't understand the recent change in SimpleVerifier's
isAssignableFrom() method (in 3.3.1):

+                if (isInterface) {
+                    return u.getSort() == Type.OBJECT || u.getSort()
  == Type.ARRAY;
+                }

and

-        return getClass(t).isAssignableFrom(getClass(u));
+        Class tc = getClass(t);
+        if (tc.isInterface()) {
+            tc = Object.class;
+        }
+        return tc.isAssignableFrom(getClass(u));

Consider t=Comparable and u=Class, or t=Comparable and u=Object. Both
cases should return false, but isAssignableFrom() returns true. Maybe I
am missing something?

Thanks,
Michael
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.