Patch: FYI: ClassLoader -vs- LinkageError
Tom Tromey
tromey@redhat.com
Wed Oct 24 08:54:00 GMT 2001
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) {
More information about the Java-patches
mailing list