DO NOT REPLY [Bug 10490] New: - 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

           Summary: JavaClass.instanceOf(JavaClass) broken
           Product: BCEL
           Version: 5.0RC1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Consider:
-------
import org.apache.bcel.*;
import org.apache.bcel.classfile.*;
public class Test{
public static void main(String[] args){
 JavaClass a = Repository.lookupClass("Test");
 System.out.println(a.instanceOf(Repository.lookupClass("java.lang.Object")));
}
}
-------
This fine program tells us "false", i.e. "Test" is not derived from
"java.lang.Object". *sigh*
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.