From 629a2d2b25f27fb92f75aba454d5e75dd23550b6 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Fri, 24 Sep 2004 09:31:28 +0000 Subject: ObjectInputStream.java (callReadMethod): re-throw `ClassNotFoundException'. 2004-09-24 Casey Marshall * java/io/ObjectInputStream.java (callReadMethod): re-throw `ClassNotFoundException'. From-SVN: r88023 --- libjava/java/io/ObjectInputStream.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libjava/java') diff --git a/libjava/java/io/ObjectInputStream.java b/libjava/java/io/ObjectInputStream.java index b9bba27..5335dfa 100644 --- a/libjava/java/io/ObjectInputStream.java +++ b/libjava/java/io/ObjectInputStream.java @@ -1813,7 +1813,8 @@ public class ObjectInputStream extends InputStream private native ClassLoader getCallersClassLoader(); - private void callReadMethod (Method readObject, Class klass, Object obj) throws IOException + private void callReadMethod (Method readObject, Class klass, Object obj) + throws ClassNotFoundException, IOException { try { @@ -1827,6 +1828,8 @@ public class ObjectInputStream extends InputStream throw (RuntimeException) exception; if (exception instanceof IOException) throw (IOException) exception; + if (exception instanceof ClassNotFoundException) + throw (ClassNotFoundException) exception; throw new IOException("Exception thrown from readObject() on " + klass + ": " + exception.getClass().getName()); -- cgit v1.1