This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: ClassLoader -vs- LinkageError
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 07 Dec 2001 16:38:24 -0700
- Subject: Patch: FYI: ClassLoader -vs- LinkageError
- Reply-to: tromey at redhat dot com
I'm checking this in.
This changes ClassLoader so that a LinkageError isn't considered an
unexpected exception while loading. I think this is correct because
we can throw things like VerifyError or ClassCircularityError at this
stage.
Tom
Index: java/lang/ClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/ClassLoader.java,v
retrieving revision 1.15
diff -u -r1.15 ClassLoader.java
--- java/lang/ClassLoader.java 2001/10/24 04:38:08 1.15
+++ java/lang/ClassLoader.java 2001/12/07 23:32:37
@@ -254,7 +254,7 @@
return defineClass0 (name, data, off, len, protectionDomain);
- } catch (ClassFormatError x) {
+ } catch (LinkageError x) {
throw x; // rethrow
} catch (java.lang.VirtualMachineError x) {