1788 |
*/ |
*/ |
1789 |
private static native ClassLoader currentClassLoader (SecurityManager sm); |
private static native ClassLoader currentClassLoader (SecurityManager sm); |
1790 |
|
|
1791 |
private void callReadMethod (Method readObject, Class klass, Object obj) throws IOException |
private void callReadMethod (Method readObject, Class klass, Object obj) |
1792 |
|
throws ClassNotFoundException, IOException |
1793 |
{ |
{ |
1794 |
try |
try |
1795 |
{ |
{ |
1803 |
throw (RuntimeException) exception; |
throw (RuntimeException) exception; |
1804 |
if (exception instanceof IOException) |
if (exception instanceof IOException) |
1805 |
throw (IOException) exception; |
throw (IOException) exception; |
1806 |
|
if (exception instanceof ClassNotFoundException) |
1807 |
|
throw (ClassNotFoundException) exception; |
1808 |
|
|
1809 |
throw new IOException("Exception thrown from readObject() on " + |
throw new IOException("Exception thrown from readObject() on " + |
1810 |
klass + ": " + exception.getClass().getName()); |
klass + ": " + exception.getClass().getName()); |