classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Use two argument constructor to throw InvalidClassExce


From: Guilhem Lavaux
Subject: [cp-patches] FYI: Use two argument constructor to throw InvalidClassException
Date: Sat, 17 Dec 2005 17:28:33 +0100
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050322)

Hi,

Here is a patch following Mark's comment.

ChangeLog entry:

2005-12-17  Guilhem Lavaux  <address@hidden>

        * java/io/ObjectOutputStream.java
        (writeClassDescriptor): Use two argument constructor. Reduced
        line size.

Guilhem.
Index: java/io/ObjectOutputStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/ObjectOutputStream.java,v
retrieving revision 1.64
diff -u -r1.64 ObjectOutputStream.java
--- java/io/ObjectOutputStream.java     14 Dec 2005 19:37:20 -0000      1.64
+++ java/io/ObjectOutputStream.java     17 Dec 2005 16:27:09 -0000
@@ -444,7 +444,8 @@
         ObjectStreamField[] fields = osc.fields;
 
        if (fields == ObjectStreamClass.INVALID_FIELDS)
-         throw new InvalidClassException("serialPersistentFields in class " + 
osc.getName() + " is invalid");
+         throw new InvalidClassException
+                 (osc.getName(), "serialPersistentFields is invalid");
 
         realOutput.writeShort(fields.length);
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]