summaryrefslogtreecommitdiff
path: root/java/io/ObjectOutputStream.java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2005-02-22 03:39:42 +0000
committerBryce McKinlay <mckinlay@redhat.com>2005-02-22 03:39:42 +0000
commitc79a49e6c2df666b7dc792236d8bfe872c595950 (patch)
treeb8568381359e5f2e18a4c5abe034192c4f3ac664 /java/io/ObjectOutputStream.java
parentdf4e13685cfc8df78f28d7a66495d5c876fe026a (diff)
downloadclasspath-c79a49e6c2df666b7dc792236d8bfe872c595950.tar.gz
2005-02-21 Bryce McKinlay <mckinlay@redhat.com>
* java/io/ObjectInputStream.java (readClassDescriptor): Cache result of currentLoader() in callersClassLoader field. Check for primitive type Class names if resolveClass throws a ClassNotFoundException. (resolveClass): Call currentLoader() only if callersClassLoader is not set. Cache result of currentLoader(). Don't check for primitive type Class names here. (callersClassLoader): New field. * java/io/ObjectOutputStream.java (writeObject, callWriteMethod): Whitespace fixes.
Diffstat (limited to 'java/io/ObjectOutputStream.java')
-rw-r--r--java/io/ObjectOutputStream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/io/ObjectOutputStream.java b/java/io/ObjectOutputStream.java
index 6dd3fe9f3..55763eedd 100644
--- a/java/io/ObjectOutputStream.java
+++ b/java/io/ObjectOutputStream.java
@@ -352,8 +352,8 @@ public class ObjectOutputStream extends OutputStream
{
if (dump)
dumpElementln ("WRITE FIELDS CALLED FOR: " + obj);
- writeFields(obj, currentObjectStreamClass);
- }
+ writeFields(obj, currentObjectStreamClass);
+ }
}
this.currentObject = prevObject;
@@ -1268,7 +1268,7 @@ public class ObjectOutputStream extends OutputStream
if (exception instanceof IOException)
throw (IOException) exception;
- IOException ioe
+ IOException ioe
= new IOException("Exception thrown from writeObject() on " +
osc.forClass().getName() + ": " +
exception.getClass().getName());