diff options
author | Tom Tromey <tromey@redhat.com> | 2001-12-07 23:34:12 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-07 23:34:12 +0000 |
commit | 941a878b35217227b19bed82d16e285a9f845436 (patch) | |
tree | 53824e3f82a8cd8a9a832e348d696c253393d84f /libjava | |
parent | cb47fb054c5fac6a04dcee12f94f5a27a29d4bbd (diff) | |
download | gcc-941a878b35217227b19bed82d16e285a9f845436.zip gcc-941a878b35217227b19bed82d16e285a9f845436.tar.gz gcc-941a878b35217227b19bed82d16e285a9f845436.tar.bz2 |
ClassLoader.java (defineClass): Rethrow any LinkageError.
* java/lang/ClassLoader.java (defineClass): Rethrow any
LinkageError.
From-SVN: r47780
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 3 | ||||
-rw-r--r-- | libjava/java/lang/ClassLoader.java | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 800c337..04779de 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,8 @@ 2001-12-07 Tom Tromey <tromey@redhat.com> + * java/lang/ClassLoader.java (defineClass): Rethrow any + LinkageError. + * java/lang/ThreadGroup.java (uncaughtException): Print message to System.err. Required by spec. diff --git a/libjava/java/lang/ClassLoader.java b/libjava/java/lang/ClassLoader.java index 2eba24c..32351d8 100644 --- a/libjava/java/lang/ClassLoader.java +++ b/libjava/java/lang/ClassLoader.java @@ -254,7 +254,7 @@ public abstract class ClassLoader return defineClass0 (name, data, off, len, protectionDomain); - } catch (ClassFormatError x) { + } catch (LinkageError x) { throw x; // rethrow } catch (java.lang.VirtualMachineError x) { |