You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2006/12/18 18:00:23 UTC
[jira] Updated: (HARMONY-2361) [classlib] [luni] Method
findResource() in class URLClassLoader doesn't throw NPE
[ http://issues.apache.org/jira/browse/HARMONY-2361?page=all ]
Mikhail Markov updated HARMONY-2361:
------------------------------------
Attachment: URLClassLoader.patch
Here is the updated patch for the code. I've re-run all unit-tests - no regressions, so it could be applied.
> [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
> 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