+2004-09-24 Casey Marshall <csm@gnu.org>
+
+ * java/io/ObjectInputStream.java (callReadMethod): re-throw
+ `ClassNotFoundException'.
+
2004-09-24 Jeroen Frijters <jeroen@frijters.net>
* java/io/ObjectInputStream.java (readObject): Delegate instantation
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
{
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());