DO NOT REPLY [Bug 10490] - JavaClass.instanceOf(JavaClass) broken

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10490>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10490

JavaClass.instanceOf(JavaClass) broken





------- Additional Comments From [email protected]  2002-07-05 17:27 -------
I located that bug.
JavaClass#getSuperClass will never return java.lang.Object
therefore getSuperClasses() doesn't contain java.lang.Object
To fix it change getSuperclassName to getClassName

   public JavaClass getSuperClass() {
    if("java.lang.Object".equals(getSuperclassName())) {//<--------
      return null;
    }
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.