gcc/libjava/java/lang
Tom Tromey ffd94572f4 Runtime.java: Comment fix.
* java/lang/Runtime.java: Comment fix.
	* java/lang/ClassLoader.java (isAncestorOf): New method.
	(getParent): Uncommented security check.  Use isAncestorOf.
	* include/jvm.h (_Jv_CheckAccess): Declare.
	* java/lang/reflect/natConstructor.cc (newInstance): Perform
	access check.
	Include IllegalAccessException.h, ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/natArray.cc (newInstance): Pass caller's
	class loader to _Jv_GetArrayClass.
	Include ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/Field.java: Update comment to reflect status.
	(equals): Fixed indentation.
	* java/lang/Class.h (Class): Declare memberAccessCheck, not
	checkMemberAccess.  Make _Jv_CheckAccess a friend.
	* java/lang/Class.java (memberAccessCheck): New method from
	Classpath.
	(checkMemberAccess): Removed.
	(getDeclaredMethod): Use memberAccessCheck.
	(getField): Likewise.
	(getMethod): Likewise.
	* resolve.cc (_Jv_ResolvePoolEntry): Use _Jv_CheckAccess.
	(_Jv_SearchMethodInClass): Likewise.
	* prims.cc (_Jv_CheckAccess): New function.
	* jni.cc (_Jv_JNI_FindClass): Use getClassLoaderInternal.
	(_Jv_JNI_GetAnyFieldID): Likewise.
	* java/lang/natClass.cc (forName): Use getClassLoaderInternal.
	(getClassLoader): Added security check.
	(getConstructor): Call memberAccessCheck.
	(getDeclaredClasses): Likewise.
	(getDeclaredField): Likewise.
	(getDeclaredFields): Likewise.
	(_getConstructors): Likewise.
	(getDeclaredConstructor): Likewise.
	(getDeclaredMethods): Likewise.
	(getFields): Likewise.
	(getMethods): Likewise.
	(newInstance): Likewise.
	(_Jv_MakeVTable): Put method name in exception.
	* java/lang/reflect/natMethod.cc (getType): Use
	getClassLoaderInternal.
	(_Jv_GetTypesFromSignature): Likewise.
	(invoke): Perform access check.
	(_Jv_CallAnyMethodA): Removed old FIXME comments.
	Include ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/natField.cc (getType): Use
	getClassLoaderInternal.
	(_Jv_CheckFieldAccessibility): Removed.
	(getAddr): Use _Jv_CheckAccess; find caller.
	Include ArrayIndexOutOfBoundsException.h.

From-SVN: r69621
2003-07-21 01:54:06 +00:00
..
ref
reflect Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
AbstractMethodError.java
ArithmeticException.java
ArrayIndexOutOfBoundsException.java
ArrayStoreException.java
AssertionError.java
Boolean.java
Byte.java
Character.java * java/lang/Character.java (forDigit): Formatting fix. 2002-12-03 20:13:43 +00:00
CharSequence.java
Class.h Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
Class.java Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
ClassCastException.java
ClassCircularityError.java
ClassFormatError.java
ClassLoader.java Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
ClassNotFoundException.java
Cloneable.java
CloneNotSupportedException.java
Comparable.java
Compiler.java
Double.java
dtoa.c
e_acos.c
e_asin.c
e_atan2.c
e_exp.c
e_fmod.c
e_log.c
e_pow.c cni.h: CNI now expands to Compiled Native Interface. 2003-07-08 21:27:37 +00:00
e_rem_pio2.c
e_remainder.c
e_scalb.c
e_sqrt.c
EcosProcess.java
Error.java
Exception.java
ExceptionInInitializerError.java
fdlibm.h cni.h: CNI now expands to Compiled Native Interface. 2003-07-08 21:27:37 +00:00
Float.java
ieeefp.h ieeefp.h: Handle ARM platforms that have pure-endian floating point. 2003-04-16 18:32:06 +00:00
IllegalAccessError.java
IllegalAccessException.java
IllegalArgumentException.java
IllegalMonitorStateException.java
IllegalStateException.java
IllegalThreadStateException.java
IncompatibleClassChangeError.java
IndexOutOfBoundsException.java
InheritableThreadLocal.java
InstantiationError.java
InstantiationException.java
Integer.java
InternalError.java
InterruptedException.java
k_cos.c
k_rem_pio2.c
k_sin.c
k_tan.c
LinkageError.java
Long.java
Math.java
mprec.c
mprec.h
natCharacter.cc
natClass.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
natClassLoader.cc natClass.cc (initializeClass): Check tables when (state == JV_STATE_IN_PROGRESS). 2003-01-30 23:20:45 +00:00
natDouble.cc
natEcosProcess.cc
natFloat.cc
natMath.cc
natObject.cc * java/lang/natObject.cc (JV_SYNC_HASH): replace signed % by &. 2003-03-15 01:04:08 +00:00
natPosixProcess.cc
natRuntime.cc jvm.h: (_Jv_GetNbArgs) added (_Jv_GetSafeArg) added (_Jv_SetArgs) added 2003-04-25 16:48:13 +00:00
natString.cc re PR libgcj/8738 (java.io.CharArrayWriter's write methods erroneously throw IOExceptions) 2003-06-07 18:35:00 +00:00
natStringBuffer.cc natStringBuffer.cc (regionMatches): New function. 2003-03-24 00:50:18 +00:00
natSystem.cc natStackTrace.cc: Include platform.h immediately after config.h. 2003-02-19 16:28:37 +00:00
natThread.cc
natVMSecurityManager.cc natVMSecurityManager.cc (getClassContext): Use maxlen instead of len for loop bound. 2003-06-18 14:13:59 +00:00
natWin32Process.cc natWin32Process.cc (startProcess): Double-quote each program array element passed to CreateProcess. 2003-03-01 23:02:18 +00:00
NegativeArraySizeException.java
NoClassDefFoundError.java
NoSuchFieldError.java
NoSuchFieldException.java
NoSuchMethodError.java
NoSuchMethodException.java
NullPointerException.java
Number.java
NumberFormatException.java
Object.h
Object.java
OutOfMemoryError.java
Package.java Proxy.java: New version from Classpath. 2003-03-29 01:34:23 +00:00
PosixProcess.java
Process.java Process.java: Merged from classpath. 2003-03-19 12:15:04 +00:00
Runnable.java
Runtime.java Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
RuntimeException.java
RuntimePermission.java
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
SecurityManager.java
sf_fabs.c
sf_rint.c
Short.java
StackOverflowError.java
StackTraceElement.java
StrictMath.java
String.java String.java (data, [...]): Documented. 2003-03-31 01:03:21 +00:00
StringBuffer.java natStringBuffer.cc (regionMatches): New function. 2003-03-24 00:50:18 +00:00
StringIndexOutOfBoundsException.java
strtod.c
System.java System.java: Explicitely import needed classes. 2003-05-27 06:03:14 +00:00
Thread.java ClassLoader.java (defineClass(byte[],int,int)): Deprecate. 2003-02-24 16:47:58 +00:00
ThreadDeath.java
ThreadGroup.java
ThreadLocal.java
Throwable.java
UnknownError.java
UnsatisfiedLinkError.java
UnsupportedClassVersionError.java
UnsupportedOperationException.java
VerifyError.java
VirtualMachineError.java
VMClassLoader.java
VMSecurityManager.java Makefile.in: Rebuilt. 2002-12-05 00:49:30 +00:00
VMThrowable.java natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:50:05 +00:00
Void.java
w_acos.c
w_asin.c
w_atan2.c
w_exp.c w_exp.c (o_threshold, [...]): Define only if _IEEE_LIBM is undefined. 2003-06-06 03:34:36 +00:00
w_fmod.c
w_log.c
w_pow.c
w_remainder.c
w_sqrt.c
Win32Process.java Win32Process.java (destroy): Declare as native. 2003-02-10 23:52:56 +00:00