This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[4.1] Patch: FYI: fix URLClassLoader buglet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 05 Apr 2006 12:11:06 -0600
- Subject: [4.1] Patch: FYI: fix URLClassLoader buglet
- Reply-to: tromey at redhat dot com
I'm checking this in on the 4.1 branch.
URLClassLoader uses initCause on a ClassNotFoundException, but this
fails. I've imported the fix from Classpath.
Tom
Index: ChangeLog.gcj
from Tom Tromey <tromey@redhat.com>
* java/lang/ClassNotFoundException.java: Imported from
Classpath.
Index: java/lang/ClassNotFoundException.java
===================================================================
--- java/lang/ClassNotFoundException.java (revision 112683)
+++ java/lang/ClassNotFoundException.java (working copy)
@@ -70,7 +70,7 @@
*/
public ClassNotFoundException()
{
- this(null, null);
+ this(null);
}
/**
@@ -81,7 +81,8 @@
*/
public ClassNotFoundException(String s)
{
- this(s, null);
+ super(s);
+ ex = null;
}
/**