harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Krivenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2361) [classlib] [luni] Method findResource() in class URLClassLoader doesn't throw NPE
Date Wed, 29 Nov 2006 14:47:23 GMT
[classlib] [luni] Method findResource() in class URLClassLoader doesn't throw NPE

                 Key: HARMONY-2361
                 URL: http://issues.apache.org/jira/browse/HARMONY-2361
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: WIN XP
            Reporter: Sergey Krivenko

The following test should throw NPE as RI does:

public class Test {

    public static void main(String[] args) {
        try {                                                                   
            URLClassLoaderExt cl = new URLClassLoaderExt(new URL[296]); 
        } catch (NullPointerException npe) {                      

class URLClassLoaderExt extends URLClassLoader {

    public URLClassLoaderExt(URL[] urls) {
    public URL findResource(String cl)  {
        return super.findResource(cl);

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message