This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: gij support for slashes in class names
Bryce McKinlay wrote:
It also changes MainThread to not chain ClassNotFoundExceptions to the
NoClassDefFoundError that it throws. This reduces the excessive stack
trace printed when an invalid class argument is given, bringing us
closer to other VM's behavior.
I'm reverting this part of the patch. Unfortunately, it turns out that
there are still situations where we can end up throwing an exception
during linking, in which case the exception displayed to the user can be
confusing.
Bryce
2006-06-01 Bryce McKinlay <mckinlay@redhat.com>
* gnu/java/lang/MainThread (run): Revert exception chaining change.
Index: gnu/java/lang/MainThread.java
===================================================================
--- gnu/java/lang/MainThread.java (revision 114300)
+++ gnu/java/lang/MainThread.java (working copy)
@@ -100,6 +100,7 @@
catch (ClassNotFoundException x)
{
NoClassDefFoundError ncdfe = new NoClassDefFoundError(klass_name);
+ ncdfe.initCause(x);
throw ncdfe;
}
}