1.1 --- a/src/share/vm/prims/jvm.h Mon Aug 29 05:07:35 2011 -0700 1.2 +++ b/src/share/vm/prims/jvm.h Tue Aug 30 00:54:09 2011 -0700 1.3 @@ -26,7 +26,6 @@ 1.4 #define SHARE_VM_PRIMS_JVM_H 1.5 1.6 #include "prims/jni.h" 1.7 -#include "runtime/reflectionCompat.hpp" 1.8 #ifdef TARGET_OS_FAMILY_linux 1.9 # include "jvm_linux.h" 1.10 #endif 1.11 @@ -43,8 +42,7 @@ 1.12 // HotSpot integration note: 1.13 // 1.14 // This file and jvm.h used with the JDK are identical, 1.15 -// except for the three includes removed below and the 1.16 -// SUPPORT_OLD_REFLECTION sections cut out of the JDK's jvm.h. 1.17 +// except for the three includes removed below 1.18 1.19 // #include <sys/stat.h> 1.20 // #include "jni.h" 1.21 @@ -443,14 +441,6 @@ 1.22 jsize len, jobject pd, const char *source, 1.23 jboolean verify); 1.24 1.25 -/* Define a class with a source (MLVM) */ 1.26 -JNIEXPORT jclass JNICALL 1.27 -JVM_DefineClassWithCP(JNIEnv *env, const char *name, jobject loader, 1.28 - const jbyte *buf, jsize len, jobject pd, 1.29 - const char *source, 1.30 - // same args as JVM_DefineClassWithSource to this point 1.31 - jobjectArray constants); 1.32 - 1.33 /* 1.34 * Reflection support functions 1.35 */ 1.36 @@ -1442,65 +1432,6 @@ 1.37 JNIEXPORT void JNICALL 1.38 JVM_RawMonitorExit(void *mon); 1.39 1.40 - 1.41 -#ifdef SUPPORT_OLD_REFLECTION 1.42 - 1.43 -/* 1.44 - * Support for old native code-based (pre-JDK 1.4) reflection implementation. 1.45 - * Disabled by default in the product build. 1.46 - * 1.47 - * See reflection.hpp for information on SUPPORT_OLD_REFLECTION 1.48 - */ 1.49 - 1.50 -/* 1.51 - * reflecting fields and methods. 1.52 - * which: 0 --- MEMBER_PUBLIC 1.53 - * 1 --- MEMBER_DECLARED 1.54 - * NOTE: absent in product build by default 1.55 - */ 1.56 - 1.57 -JNIEXPORT jobjectArray JNICALL 1.58 -JVM_GetClassFields(JNIEnv *env, jclass cls, jint which); 1.59 - 1.60 -JNIEXPORT jobjectArray JNICALL 1.61 -JVM_GetClassMethods(JNIEnv *env, jclass cls, jint which); 1.62 - 1.63 -JNIEXPORT jobjectArray JNICALL 1.64 -JVM_GetClassConstructors(JNIEnv *env, jclass cls, jint which); 1.65 - 1.66 -JNIEXPORT jobject JNICALL 1.67 -JVM_GetClassField(JNIEnv *env, jclass cls, jstring name, jint which); 1.68 - 1.69 -JNIEXPORT jobject JNICALL 1.70 -JVM_GetClassMethod(JNIEnv *env, jclass cls, jstring name, jobjectArray types, 1.71 - jint which); 1.72 -JNIEXPORT jobject JNICALL 1.73 -JVM_GetClassConstructor(JNIEnv *env, jclass cls, jobjectArray types, 1.74 - jint which); 1.75 - 1.76 -/* 1.77 - * Implements Class.newInstance 1.78 - */ 1.79 -JNIEXPORT jobject JNICALL 1.80 -JVM_NewInstance(JNIEnv *env, jclass cls); 1.81 - 1.82 -/* 1.83 - * java.lang.reflect.Field 1.84 - */ 1.85 -JNIEXPORT jobject JNICALL 1.86 -JVM_GetField(JNIEnv *env, jobject field, jobject obj); 1.87 - 1.88 -JNIEXPORT jvalue JNICALL 1.89 -JVM_GetPrimitiveField(JNIEnv *env, jobject field, jobject obj, 1.90 - unsigned char wCode); 1.91 - 1.92 -JNIEXPORT void JNICALL 1.93 -JVM_SetField(JNIEnv *env, jobject field, jobject obj, jobject val); 1.94 - 1.95 -JNIEXPORT void JNICALL 1.96 -JVM_SetPrimitiveField(JNIEnv *env, jobject field, jobject obj, jvalue v, 1.97 - unsigned char vCode); 1.98 - 1.99 /* 1.100 * java.lang.reflect.Method 1.101 */ 1.102 @@ -1513,8 +1444,6 @@ 1.103 JNIEXPORT jobject JNICALL 1.104 JVM_NewInstanceFromConstructor(JNIEnv *env, jobject c, jobjectArray args0); 1.105 1.106 -#endif /* SUPPORT_OLD_REFLECTION */ 1.107 - 1.108 /* 1.109 * java.lang.management support 1.110 */