gcc/libjava/java
Mark Wielaard 4480b3dcf6 Makefile.am (nat_source_files): Remove java/io/natObjectOutputStream.cc.
* Makefile.am (nat_source_files): Remove
        java/io/natObjectOutputStream.cc.
        * Makefile.in: Regenerated.
        * mauve-libgcj: Don't exclude java.io.ObjectInputOutput tests.
        * java/io/ObjectStreamField.java (typename): New field.
        (ObjectStreamField(String, Class)): Initialize new field.
        (ObjectStreamField(String, String)): New Constructor.
        (getTypeCode): Use new field.
        (getTypeString): Use new field.
        * java/io/ObjectOutputStream.java (writeObject): Rethrow fatal
        ObjectStreamExceptions. Remember and reset old BlockDataMode.
        Handle reading of Proxy classes. Never drain(), just write
        TC_ENDBLOCKDATA. Rethrow ObjectStreamExceptions.
        (drain): Check writeDataAsBlocks before calling writeBlockDataHeader.
        (flush): Call flush(), not just drain().
        (writeBoolean): Always use blockDataOutput.
        (writeByte): Likewise.
        (writeShort): Likewise.
        (writeChar): Likewise.
        (writeInt): Likewise.
        (writeLong): Likewise.
        (writeFloat): Likewise.
        (writeDouble): Likewise.
        (writeBytes): Likewise.
        (putfield (put(String,Object))): Throw IllegalArgumentException if
        field cannot be found.
        (putfield (write(ObjectOutput))): Remember old BlockDataMode.
        (writeArraySizeAndElements): Write byte[] in one go.
        (writeFields): Write TC_ENDBLOCKDATA when call_write_method, otherwise
        set BlockDataMode to false.
        (annotateProxyClass): New method.
        (defaultProtocolVersion): Now defaults to PROTOCOL_VERSION_2
        (getField): No longer native.
        (getMethod): Likewise.
        (setBlockDataMode): Always drain() on switch, return old mode.
        (static): New static code block.
        * java/io/natObjectOutputStream.cc: Removed.
        * java/io/ObjectInputStream.java (getField): No longer native.
        (getMethod): Likewise.
        (readObject): Remember and reset old BlockDataMode. Track whether
        object is consumed. Handle TC_ENDBLOCKDATA, TC_PROXYCLASSDESC and
        TC_LONGSTRING.
        (defaultReadObject): Set BlockDataMode to false during readFields.
        (resolveClass): Create new SecurityManager if necessary.
        Use Class.forName() if null ClassLoader found.
        (read(byte[],int,int): Copy remaining bytes to data before calling
        readNextBlock().
        (readFields): Set and reset BlockDataMode on call_read_method.
        Catch NoSuchFieldErrors.
        (setBlockDataMode): Return old mode.
        (static): New static code block.
        * java/io/natObjectInputStream.cc (getField): Removed.
        (getMethod): Likewise.

From-SVN: r63556
2003-02-28 11:38:56 +00:00
..
applet AppletContext.java: Fix typo and remove redundant modifiers. 2002-11-14 20:35:27 +00:00
awt ScrollPaneAdjustable.java: Reformated. 2003-02-19 11:41:16 +00:00
beans Beans.java, [...]: Reformated to GNU style. 2003-02-27 10:52:41 +00:00
io Makefile.am (nat_source_files): Remove java/io/natObjectOutputStream.cc. 2003-02-28 11:38:56 +00:00
lang ClassLoader.java (defineClass(byte[],int,int)): Deprecate. 2003-02-24 16:47:58 +00:00
math BigInteger.java (euclidInv): Take result array as an argument. 2003-02-20 16:55:15 +00:00
net 2003-02-17 Michael Koch <konqueror@gmx.de> 2003-02-17 15:33:54 +00:00
nio 2003-02-19 Michael Koch <konqueror@gmx.de> 2003-02-19 11:47:49 +00:00
rmi UnicastServerRef.java (unexportObject): Don't throw RemoteException. 2003-01-03 22:57:25 +00:00
security re PR libgcj/9271 (Severe bias in java.security.SecureRandom) 2003-02-13 17:00:22 +00:00
sql Timestamp.java (compareTo(Object)): New method. 2003-02-10 19:56:12 +00:00
text Externalizable.java, [...]: New versions from Classpath. 2002-11-10 22:06:49 +00:00
util AbstractPreferences.java (isUserNode): Implemented. 2003-02-24 21:20:19 +00:00