gcc/libjava/java/io
Bryce McKinlay f4294557b7 [multiple changes]
2005-02-21  Bryce McKinlay  <mckinlay@redhat.com>

	Merge serialization from GNU Classpath.
	* gcj/method.h: Add missing #includes.
	* java/io/ObjectInputStream.java (readClassDescriptor): Check for
	primitive class IDs on the stream here...
	(resolveClass): ...not here.
	* java/io/ObjectStreamField.java: Use VMObjectStream class calls to set
	fields.
	* java/io/VMObjectStreamClass.java (setDoubleNative, setFloatNative,
	setLongNative, setIntNative, setShortNative, setCharNative,
	setByteNative, setBooleanNative, setObjectNative): New native methods.
	* java/io/natVMObjectStreamClass.java (setDoubleNative, setFloatNative,
	setLongNative, setIntNative, setShortNative, setCharNative,
	setByteNative, setBooleanNative, setObjectNative): Implement them.
	* java/io/natObjectInputStream.cc (allocateObject): Add new parameters
	from Classpath's version. Use _Jv_FromReflectedConstructor(). Call
	the constructor here.
	(callConstructor): Removed.
	(getCallersClassLoader): Removed.
	* java/lang/reflect/Field.java (setByte, setShort, setInt, setLong,
	setFloat, setDouble, setChar, setBoolean): Add 'checkFinal' parameter
	to control whether setting final field values is permitted. Call
	getAddr() with checkFinal parameter instead of setAddr().
	* java/lang/reflect/natField.cc (getType): Lookup and resolve field
	only if not done already.
	(getAddr): Add checkFinal parameter. Do the final field check only if
	checkFinal is set.
	(setAddr): Removed.

2005-02-21  Mark Wielaard  <mark@klomp.org>

	# Fixes bug #11957
	* java/io/ObjectInputStream.java (resolveClass): Don't check "void"
	twice.

2005-02-21  Mark Wielaard  <mark@klomp.org>

	Fixes bug #11618.
	* java/io/ObjectInputStream.java (readClassDescriptor): Handle classes
	without a super class and us ObjectStreamClass.lookupForClassObject().
	(resolveClass): Check for primitive types.
	(lookupClass): Return null when argument is null.

2005-02-21  Jeroen Frijters  <jeroen@frijters.net>

	* java/io/ObjectInputStream.java
	(readObject): Fix to consume TC_ENDBLOCKDATA after readExternal.

2005-02-21  Jeroen Frijters  <jeroen@frijters.net>

	* java/io/ObjectOutputStream.java
	(writeObject, callWriteMethod): Replaced reflection with accessing
	cached info in ObjectStreamClass.
	(getMethod): Removed.
	* java/io/ObjectStreamClass.java
	(findMethod): Added check to make sure the method found has the
	right modifiers.
	(cacheMethods): Added writeReplace and writeObject methods.
	(setFlags): Look at new writeObjectMethod field instead of doing
	reflection again.
	(writeReplaceMethod): New field.
	(writeObjectMethod): New field.

2005-02-21  Guilhem Lavaux  <guilhem@kaffe.org>
	Jeroen Frijters  <jeroen@frijters.net>

	* java/io/ObjectInputStream.java
	(newObject): Changed prototype. Get a constructor reflect object
	directly.
	(callConstructor): Removed.
	(allocateObject): Changed prototype.
	(readClassDescriptor): Build the constructor reflection directly.
	(readObject): Invoke newObject using the new prototype.

	* java/io/ObjectStreamClass.java
	(firstNonSerializableParent): Removed.
	(firstNonSerializableParentConstructor): Added.

From-SVN: r95378
2005-02-22 03:13:35 +00:00
..
BufferedInputStream.java re PR libgcj/18840 (java.io.BufferedInputStream.read(byte[],..) methods don't attempt to read as much as possible) 2005-01-11 20:04:33 +00:00
BufferedOutputStream.java BufferedOutputStream.java: Reformated. 2003-03-23 19:11:19 +00:00
BufferedReader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
BufferedWriter.java BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor. 2004-07-20 16:51:11 +01:00
ByteArrayInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ByteArrayOutputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
CharArrayReader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
CharArrayWriter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
CharConversionException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
DataInput.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
DataInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
DataOutput.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
DataOutputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
EOFException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Externalizable.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
File.java File.java (toURI): Generate a URI which we understand. 2005-01-14 21:12:46 +00:00
FileDescriptor.java FileDescriptor.java (sync): Add real exception to SyncFailedException. 2005-02-21 08:31:01 +00:00
FileFilter.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
FileInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FilenameFilter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FileNotFoundException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FileOutputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FilePermission.java * java/io/FilePermission.java: Reindented. 2004-11-06 23:07:45 +00:00
FileReader.java BufferedReader.java, [...]: Merged from classpath. 2003-03-18 06:00:25 +00:00
FileWriter.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
FilterInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FilterOutputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FilterReader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
FilterWriter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InputStreamReader.java InputStreamReader.java: Fixed @author tag. 2005-02-21 08:27:00 +00:00
InterruptedIOException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InvalidClassException.java BufferedOutputStream.java: Re-merged with Classpath. 2002-06-15 18:59:15 +00:00
InvalidObjectException.java BufferedOutputStream.java: Re-merged with Classpath. 2002-06-15 18:59:15 +00:00
IOException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
LineNumberInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
LineNumberReader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
natFilePosix.cc URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result. 2003-09-12 01:08:18 +00:00
natFileWin32.cc configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi. 2003-12-02 22:26:50 +00:00
natObjectInputStream.cc [multiple changes] 2005-02-22 03:13:35 +00:00
natVMObjectStreamClass.cc [multiple changes] 2005-02-22 03:13:35 +00:00
NotActiveException.java BufferedOutputStream.java: Re-merged with Classpath. 2002-06-15 18:59:15 +00:00
NotSerializableException.java BufferedOutputStream.java: Re-merged with Classpath. 2002-06-15 18:59:15 +00:00
ObjectInput.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
ObjectInputStream.java [multiple changes] 2005-02-22 03:13:35 +00:00
ObjectInputValidation.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
ObjectOutput.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
ObjectOutputStream.java [multiple changes] 2005-02-22 03:13:35 +00:00
ObjectStreamClass.java 2004-10-09 Michael Koch <konqueror@gmx.de> 2004-10-09 10:22:25 +00:00
ObjectStreamConstants.java Externalizable.java, [...]: Removed redundant modifiers. 2003-10-11 18:38:12 +00:00
ObjectStreamException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ObjectStreamField.java [multiple changes] 2005-02-22 03:13:35 +00:00
OptionalDataException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
OutputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
OutputStreamWriter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
PipedInputStream.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
PipedOutputStream.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
PipedReader.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
PipedWriter.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
PrintStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
PrintWriter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
PushbackInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
PushbackReader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
RandomAccessFile.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Reader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
SequenceInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Serializable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
SerializablePermission.java BufferedWriter.java, [...]: Fixed javadocs all over, rename arguments to match javadocs, fixed coding style. 2004-04-20 11:37:41 +00:00
StreamCorruptedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StreamTokenizer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StringBufferInputStream.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StringReader.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
StringWriter.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
SyncFailedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UnsupportedEncodingException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UTFDataFormatException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VMObjectStreamClass.java [multiple changes] 2005-02-22 03:13:35 +00:00
WriteAbortedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Writer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00