You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sergey Krivenko (JIRA)" <ji...@apache.org> on 2006/11/29 12:41:21 UTC
[jira] Created: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
[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
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
[jira] Updated: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Sergey Krivenko updated HARMONY-2357:
-------------------------------------
Attachment: Harmony-2357-URLClassLoaderTest.patch
The attached is a patch to the test
> [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, Harmony-2357-URLClassLoaderTest.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
[jira] Assigned: (HARMONY-2357) [classlib] [luni] Method
findClass() in class URLClassLoader throws ClassNotFoundException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Tim Ellison reassigned HARMONY-2357:
------------------------------------
Assignee: Tim Ellison
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.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
[jira] Updated: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Mikhail Markov updated HARMONY-2357:
------------------------------------
Attachment: URLClassLoaderTest.patch
Tim, i'm not Sergey :-) but i'd like to comment the integration:
Code integration looks find, but test one is not:
// Regression test for HARMONY-2357.
URLClassLoaderExt cl = new URLClassLoaderExt(new URL[557]);
cl.findClass("0");
This piece of code will throw NullPointerException and thus should be put into try/catch block as in Sergey's initial patch for test (see the new patch attached). This is not seen as the whole test URLClassLoaderTest is excluded for now.
Thanks!
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.patch, URLClassLoaderTest.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
[jira] Commented: (HARMONY-2357) [classlib] [luni] Method
findClass() in class URLClassLoader throws ClassNotFoundException
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=comments#action_12460761 ]
Mikhail Markov commented on HARMONY-2357:
-----------------------------------------
Thanks, Tim - this time everything is fine.
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.patch, URLClassLoaderTest.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
[jira] Resolved: (HARMONY-2357) [classlib] [luni] Method
findClass() in class URLClassLoader throws ClassNotFoundException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Tim Ellison resolved HARMONY-2357.
----------------------------------
Resolution: Fixed
Thanks Sergey,
Patch and modified version of regression test case added to LUNI module at repo revision r489658.
Please check that this fully resolves the issue.
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.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
[jira] Updated: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (HARMONY-2357) [classlib] [luni] Method
findClass() in class URLClassLoader throws ClassNotFoundException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=comments#action_12460667 ]
Tim Ellison commented on HARMONY-2357:
--------------------------------------
D'oh -- thanks Mikhail! Thank you for checking the code so carefully.
You test patch was applied to the LUNI module at repo revision r489932.
Please check that I got it right this time.
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.patch, URLClassLoaderTest.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
[jira] Updated: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Sergey Krivenko updated HARMONY-2357:
-------------------------------------
Patch Info: [Patch Available]
> [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, Harmony-2357-URLClassLoaderTest.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
[jira] Closed: (HARMONY-2357) [classlib] [luni] Method findClass()
in class URLClassLoader throws ClassNotFoundException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2357?page=all ]
Tim Ellison closed HARMONY-2357.
--------------------------------
Verified by Mikhail.
> [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
> Assigned To: Tim Ellison
> Attachments: Harmony-2357-URLClassLoader.patch, Harmony-2357-URLClassLoaderTest.patch, URLClassLoaderTest.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