This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[4.1] Patch: FYI: fix URLClassLoader buglet


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;
   }
 
   /**


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]