ObjectInputStream.java (readObject): Added code to conditionally dump out the seriali...
authorWarren Levy <warrenl@cygnus.com>
Fri, 3 Nov 2000 08:04:33 +0000 (08:04 +0000)
committerWarren Levy <warrenl@gcc.gnu.org>
Fri, 3 Nov 2000 08:04:33 +0000 (08:04 +0000)
commita53785f90e37e767cd96210da2f7c73ad8621d37
treec6e8c834e2c535007905e93116b1ce98ae2be3c6
parent6678181b3c0196dc782aec1bbf16182cd92c0257
ObjectInputStream.java (readObject): Added code to conditionally dump out the serialized data.

* java/io/ObjectInputStream.java (readObject): Added code to
conditionally dump out the serialized data.
Handle ENDBLOCKDATA case a bit more gracefully since the current
behavior doesn't seem to work as expected.
(readStreamHeader): Added code for serialized data dumper.
(readNextBlock): Ditto.
(readFields): Ditto.
(dump): New private static field for turning on/off dumper.
(setDump): New native method.
(dumpElement): New native method.
(dumpElementln): New native method.
* java/io/natObjectInputStream.cc (setDump): New method.
(dumpElement): New method.
(dumpElementln): New method.

Serialization dumper.  Enable by configuring with --enable-libgcj-debug
and calling java.io.ObjectInputStream.setDump(true) in your test program.
The output will be generated as the object is deserialized (i.e. the
readObject() method is executed).

From-SVN: r37223
libjava/ChangeLog
libjava/java/io/ObjectInputStream.java
libjava/java/io/natObjectInputStream.cc