mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-14 11:45:09 +08:00
4480b3dcf6
* 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 |
||
---|---|---|
.. | ||
BufferedInputStream.java | ||
BufferedOutputStream.java | ||
BufferedReader.java | ||
BufferedWriter.java | ||
ByteArrayInputStream.java | ||
ByteArrayOutputStream.java | ||
CharArrayReader.java | ||
CharArrayWriter.java | ||
CharConversionException.java | ||
DataInput.java | ||
DataInputStream.java | ||
DataOutput.java | ||
DataOutputStream.java | ||
EOFException.java | ||
Externalizable.java | ||
File.java | ||
FileDescriptor.java | ||
FileFilter.java | ||
FileInputStream.java | ||
FilenameFilter.java | ||
FileNotFoundException.java | ||
FileOutputStream.java | ||
FilePermission.java | ||
FileReader.java | ||
FileWriter.java | ||
FilterInputStream.java | ||
FilterOutputStream.java | ||
FilterReader.java | ||
FilterWriter.java | ||
InputStream.java | ||
InputStreamReader.java | ||
InterruptedIOException.java | ||
InvalidClassException.java | ||
InvalidObjectException.java | ||
IOException.java | ||
LineNumberInputStream.java | ||
LineNumberReader.java | ||
natFileDescriptorEcos.cc | ||
natFileDescriptorPosix.cc | ||
natFileDescriptorWin32.cc | ||
natFilePosix.cc | ||
natFileWin32.cc | ||
natObjectInputStream.cc | ||
natVMObjectStreamClass.cc | ||
NotActiveException.java | ||
NotSerializableException.java | ||
ObjectInput.java | ||
ObjectInputStream.java | ||
ObjectInputValidation.java | ||
ObjectOutput.java | ||
ObjectOutputStream.java | ||
ObjectStreamClass.java | ||
ObjectStreamConstants.java | ||
ObjectStreamException.java | ||
ObjectStreamField.java | ||
OptionalDataException.java | ||
OutputStream.java | ||
OutputStreamWriter.java | ||
PipedInputStream.java | ||
PipedOutputStream.java | ||
PipedReader.java | ||
PipedWriter.java | ||
PrintStream.java | ||
PrintWriter.java | ||
PushbackInputStream.java | ||
PushbackReader.java | ||
RandomAccessFile.java | ||
Reader.java | ||
SequenceInputStream.java | ||
Serializable.java | ||
SerializablePermission.java | ||
StreamCorruptedException.java | ||
StreamTokenizer.java | ||
StringBufferInputStream.java | ||
StringReader.java | ||
StringWriter.java | ||
SyncFailedException.java | ||
UnsupportedEncodingException.java | ||
UTFDataFormatException.java | ||
VMObjectStreamClass.java | ||
WriteAbortedException.java | ||
Writer.java |