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 2007/02/13 16:52:06 UTC
[jira] Commented: (HARMONY-2361) [classlib] [luni] Method
findResource() in class URLClassLoader doesn't throw NPE
[ https://issues.apache.org/jira/browse/HARMONY-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472725 ]
Mikhail Markov commented on HARMONY-2361:
-----------------------------------------
Tim,
could you please close this issue as it is not reproducible after HARMONY-2871 fix. Thanks!
> [classlib] [luni] Method findResource() in class URLClassLoader doesn't throw NPE
> ---------------------------------------------------------------------------------
>
> Key: HARMONY-2361
> URL: https://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: H-2361.patch, 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.
-
You can reply to this email to add a comment to the issue online.