gcc/libjava/java/lang
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
..
ref
reflect [multiple changes] 2005-02-22 03:13:35 +00:00
AbstractMethodError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArithmeticException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArrayIndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ArrayStoreException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
AssertionError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Boolean.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Byte.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Character.java Character.java, [...]: Reorder "final static" to "static final". 2004-11-24 13:33:01 +00:00
CharSequence.java
Class.h Class.h (_Jv_GetMethodString): Updated declaration. 2005-02-17 19:17:08 +00:00
Class.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassCastException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassCircularityError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassFormatError.java
ClassLoader.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ClassNotFoundException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Cloneable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
CloneNotSupportedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Comparable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Compiler.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Double.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
dtoa.c
e_acos.c
e_asin.c
e_atan2.c
e_exp.c
e_fmod.c
e_log.c
e_pow.c
e_rem_pio2.c
e_remainder.c
e_scalb.c
e_sqrt.c
EcosProcess.java
Error.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Exception.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ExceptionInInitializerError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
fdlibm.h
Float.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ieeefp.h Add m32r support. 2004-10-21 09:36:47 +00:00
IllegalAccessError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalAccessException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalArgumentException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalMonitorStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IllegalThreadStateException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IncompatibleClassChangeError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
IndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InheritableThreadLocal.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InstantiationError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InstantiationException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Integer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InternalError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
InterruptedException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
k_cos.c
k_rem_pio2.c
k_sin.c
k_tan.c
LinkageError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Long.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Math.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
mprec.c
mprec.h
natCharacter.cc
natClass.cc Class.h (_Jv_GetMethodString): Updated declaration. 2005-02-17 19:17:08 +00:00
natClassLoader.cc defineclass.cc (handleClassBegin): Use _Jv_RegisterInitiatingLoader. 2005-02-07 21:29:04 +00:00
natDouble.cc
natEcosProcess.cc
natFloat.cc
natMath.cc
natObject.cc natObject.cc (_Jv_ObjectCheckMonitor): Initialize the sync_info element of the object if needed. 2005-01-05 05:09:09 +00:00
natPosixProcess.cc natPosixProcess.cc (waitForSignal): Ignore return value of sigsuspend. 2004-09-14 13:09:31 -07:00
natRuntime.cc natRuntime.cc (insertSystemProperties): Normalize x86 architecture names to "i386" for compatibility reasons. 2005-02-18 23:29:44 +00:00
natString.cc * Merged gcj-abi-2-dev-branch to trunk. 2004-11-25 03:47:08 +00:00
natStringBuffer.cc
natSystem.cc
natThread.cc jni.h (_Jv_JNIEnv::bottom_locals): New field. 2005-01-14 07:36:27 +00:00
natVMClassLoader.cc defineclass.cc (handleClassBegin): Use _Jv_RegisterInitiatingLoader. 2005-02-07 21:29:04 +00:00
natVMSecurityManager.cc
natWin32Process.cc
NegativeArraySizeException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoClassDefFoundError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchFieldError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchFieldException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchMethodError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NoSuchMethodException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NullPointerException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Number.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
NumberFormatException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Object.h Makefile.am: Correct friend function declaration. 2004-11-18 05:37:13 +00:00
Object.java Object.java: Added javadocs all over (merged from GNU classpath). 2004-11-16 21:37:29 +00:00
OutOfMemoryError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Package.java PR libgcj/12016, PR libgcj/18405, PR libgcj/17738: 2005-01-10 19:39:26 +00:00
PosixProcess.java re PR libgcj/11801 (Problems with Process.waitFor() and exitValue()) 2004-08-12 16:20:11 +00:00
Process.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Runnable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
Runtime.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
RuntimeException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
RuntimePermission.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
s_atan.c
s_ceil.c
s_copysign.c
s_cos.c
s_fabs.c
s_floor.c
s_rint.c
s_scalbn.c
s_sin.c
s_tan.c
SecurityException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
SecurityManager.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
sf_fabs.c
sf_rint.c
Short.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StackOverflowError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StackTraceElement.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StrictMath.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
String.java String.java (rehash): Removed. 2004-11-23 21:33:01 +00:00
StringBuffer.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
StringIndexOutOfBoundsException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
strtod.c
System.java System.java: Revert accidential change. 2004-10-18 11:09:11 +00:00
Thread.java re PR libgcj/17784 (Thread.interrupt doesn't do security checks) 2005-01-13 20:26:38 +00:00
ThreadDeath.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ThreadGroup.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
ThreadLocal.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
Throwable.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UnknownError.java
UnsatisfiedLinkError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
UnsupportedClassVersionError.java
UnsupportedOperationException.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VerifyError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VirtualMachineError.java GThreadNativeMethodRunner.java, [...]: Fixed usage of @author tag... 2005-02-17 07:48:58 +00:00
VMClassLoader.java re PR libgcj/19681 (extension loading currently incorrect) 2005-02-02 20:59:41 +00:00
VMCompiler.java Subject.java (doAsPrivileged): If acc is null, create a new AccessControlContext. 2005-02-16 18:51:25 +00:00
VMSecurityManager.java * Merged gcj-abi-2-dev-branch to trunk. 2004-11-25 03:47:08 +00:00
VMThrowable.java
Void.java Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders. 2004-10-18 10:41:56 +00:00
w_acos.c
w_asin.c
w_atan2.c
w_exp.c
w_fmod.c
w_log.c
w_pow.c
w_remainder.c
w_sqrt.c
Win32Process.java