ffd94572f4
* 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 |
||
---|---|---|
.. | ||
ref | ||
reflect | ||
AbstractMethodError.java | ||
ArithmeticException.java | ||
ArrayIndexOutOfBoundsException.java | ||
ArrayStoreException.java | ||
AssertionError.java | ||
Boolean.java | ||
Byte.java | ||
Character.java | ||
CharSequence.java | ||
Class.h | ||
Class.java | ||
ClassCastException.java | ||
ClassCircularityError.java | ||
ClassFormatError.java | ||
ClassLoader.java | ||
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 | ||
e_rem_pio2.c | ||
e_remainder.c | ||
e_scalb.c | ||
e_sqrt.c | ||
EcosProcess.java | ||
Error.java | ||
Exception.java | ||
ExceptionInInitializerError.java | ||
fdlibm.h | ||
Float.java | ||
ieeefp.h | ||
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 | ||
natClassLoader.cc | ||
natDouble.cc | ||
natEcosProcess.cc | ||
natFloat.cc | ||
natMath.cc | ||
natObject.cc | ||
natPosixProcess.cc | ||
natRuntime.cc | ||
natString.cc | ||
natStringBuffer.cc | ||
natSystem.cc | ||
natThread.cc | ||
natVMSecurityManager.cc | ||
natWin32Process.cc | ||
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 | ||
PosixProcess.java | ||
Process.java | ||
Runnable.java | ||
Runtime.java | ||
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 | ||
StringBuffer.java | ||
StringIndexOutOfBoundsException.java | ||
strtod.c | ||
System.java | ||
Thread.java | ||
ThreadDeath.java | ||
ThreadGroup.java | ||
ThreadLocal.java | ||
Throwable.java | ||
UnknownError.java | ||
UnsatisfiedLinkError.java | ||
UnsupportedClassVersionError.java | ||
UnsupportedOperationException.java | ||
VerifyError.java | ||
VirtualMachineError.java | ||
VMClassLoader.java | ||
VMSecurityManager.java | ||
VMThrowable.java | ||
Void.java | ||
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 |