You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/12/22 15:40:23 UTC

[jira] Resolved: (HARMONY-2361) [classlib] [luni] Method findResource() in class URLClassLoader doesn't throw NPE

     [ http://issues.apache.org/jira/browse/HARMONY-2361?page=all ]

Tim Ellison resolved HARMONY-2361.
----------------------------------

    Resolution: Duplicate
      Assignee: Tim Ellison

Dupe of HARMONY-2357.  Please re-open if you can recreate the problem in builds > r489658.


> [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
>         Assigned To: Tim Ellison
>         Attachments: Harmony-2361-URLClassLoader.patch, Harmony-2361-URLClassLoaderTest.patch, URLClassLoader.patch
>
>
> 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]); 
>             cl.findResource("0");    
>             System.out.println("FAILED");
>         } catch (NullPointerException npe) {                      
>             System.out.println("PASSED");
>         }
>     }
> }
> class URLClassLoaderExt extends URLClassLoader {
>     public URLClassLoaderExt(URL[] urls) {
>         super(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