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]

Patch: FYI: ClassLoader -vs- LinkageError


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) {


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