[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22941] Incorrect exception handling in ObjectOutputStream
From: |
cvs-commit at developer dot classpath dot org |
Subject: |
[Bug classpath/22941] Incorrect exception handling in ObjectOutputStream |
Date: |
29 Jan 2008 22:31:47 -0000 |
------- Comment #3 from cvs-commit at developer dot classpath dot org
2008-01-29 22:31 -------
Subject: Bug 22941
CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Ito Kazumitsu <itokaz> 08/01/29 22:30:44
Modified files:
. : ChangeLog
java/io : DataInputStream.java DataOutputStream.java
ObjectInputStream.java ObjectOutputStream.java
Log message:
2008-01-29 Ito Kazumitsu <address@hidden>
Fixes bug #22941
* java/io/DataInputStream.java(readUTFLong): New method.
(readUTF): New private method.
* java/io/DataOutputStream.java(getUTFlength): Made
package-private,
Return type changed to long.
(writeUTF): Use the new method writeUTFShort.
(writeUTFShort): New package-private method.
(writeUTFLong): New package-private method.
(writeUTFBytes): New private method.
* java/io/ObjectInputStream.java(parseContent): Separate the
handling of TC_LONGSTRING from TC_STRING.
* java/io/ObjectOutputStream.java(writeObject): When to write a
String, use writeUTFShort or writeUTFLong depending on the byte
length.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9479&r2=1.9480
http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/DataInputStream.java?cvsroot=classpath&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/DataOutputStream.java?cvsroot=classpath&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/ObjectInputStream.java?cvsroot=classpath&r1=1.83&r2=1.84
http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/ObjectOutputStream.java?cvsroot=classpath&r1=1.72&r2=1.73
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22941