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] Updated: (HARMONY-2357) [classlib] [luni] Method findClass() in class URLClassLoader throws ClassNotFoundException
Date Wed, 29 Nov 2006 12:13:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]

Sergey Krivenko updated HARMONY-2357:
-------------------------------------

    Attachment: Harmony-2357-URLClassLoader.patch

The attached is a patch that fixes the bug

> [classlib] [luni] Method findClass() in class URLClassLoader throws ClassNotFoundException
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2357
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2357
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: WIN XP
>            Reporter: Sergey Krivenko
>         Attachments: Harmony-2357-URLClassLoader.patch
>
>
> The following test throws ClassNotFoundException while RI throws NPE:
> import java.net.*;
> public class test  { 
>     public static void main (String[] args) {                     
>         try {                                                                   
>                testURLClassLoader cl = new testURLClassLoader(new URL[557]);    
>                cl.findClass("0");                                            
>             } catch (Exception e) {                      
>            e.printStackTrace();
>         }                         
>     }     
> }
> class testURLClassLoader extends URLClassLoader {
>    public testURLClassLoader(URL[] urls) {
>      super(urls);
>    }
>     public Class findClass(String cl) throws ClassNotFoundException {
>      return super.findClass(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

        

Mime
View raw message