DO NOT REPLY [Bug 11319] New: - NullPointerException in ClassLoader

[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=11319>.
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=11319

NullPointerException in ClassLoader

           Summary: NullPointerException in ClassLoader
           Product: BCEL
           Version: 5.0RC1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When trying to load an unknown class, a NullPointerException is thrown, but a
ClassNotFoundException should be thrown.

A patch for this is:

Index: src/java/org/apache/bcel/util/ClassLoaderRepository.java
===================================================================
RCS file:
/home/cvspublic/jakarta-bcel/src/java/org/apache/bcel/util/ClassLoaderRepository.java,v
retrieving revision 1.2
diff -r1.2 ClassLoaderRepository.java
124a125,128
>             if (is == null) {
>                 throw new ClassNotFoundException( "Class not found." );
>             }
>
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.