mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8137058: Clear out all non-Critical APIs from sun.reflect
Reviewed-by: alanb, jfranck, mchung
This commit is contained in:
parent
76e228d3db
commit
00f6a09302
23 changed files with 77 additions and 71 deletions
|
@ -227,26 +227,20 @@
|
|||
\
|
||||
/* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
|
||||
\
|
||||
template(sun_reflect_FieldInfo, "sun/reflect/FieldInfo") \
|
||||
template(sun_reflect_MethodInfo, "sun/reflect/MethodInfo") \
|
||||
template(sun_reflect_MagicAccessorImpl, "sun/reflect/MagicAccessorImpl") \
|
||||
template(sun_reflect_MethodAccessorImpl, "sun/reflect/MethodAccessorImpl") \
|
||||
template(sun_reflect_ConstructorAccessorImpl, "sun/reflect/ConstructorAccessorImpl") \
|
||||
template(sun_reflect_SerializationConstructorAccessorImpl, "sun/reflect/SerializationConstructorAccessorImpl") \
|
||||
template(sun_reflect_DelegatingClassLoader, "sun/reflect/DelegatingClassLoader") \
|
||||
template(sun_reflect_Reflection, "sun/reflect/Reflection") \
|
||||
template(sun_reflect_CallerSensitive, "sun/reflect/CallerSensitive") \
|
||||
template(sun_reflect_CallerSensitive_signature, "Lsun/reflect/CallerSensitive;") \
|
||||
template(reflect_MagicAccessorImpl, "jdk/internal/reflect/MagicAccessorImpl") \
|
||||
template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \
|
||||
template(reflect_ConstructorAccessorImpl, "jdk/internal/reflect/ConstructorAccessorImpl") \
|
||||
template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \
|
||||
template(reflect_Reflection, "jdk/internal/reflect/Reflection") \
|
||||
template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \
|
||||
template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \
|
||||
template(checkedExceptions_name, "checkedExceptions") \
|
||||
template(clazz_name, "clazz") \
|
||||
template(exceptionTypes_name, "exceptionTypes") \
|
||||
template(modifiers_name, "modifiers") \
|
||||
template(newConstructor_name, "newConstructor") \
|
||||
template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \
|
||||
template(newField_name, "newField") \
|
||||
template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \
|
||||
template(newMethod_name, "newMethod") \
|
||||
template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \
|
||||
template(invokeBasic_name, "invokeBasic") \
|
||||
template(linkToVirtual_name, "linkToVirtual") \
|
||||
template(linkToStatic_name, "linkToStatic") \
|
||||
|
@ -268,9 +262,9 @@
|
|||
template(executable_name, "executable") \
|
||||
template(parameter_annotations_name, "parameterAnnotations") \
|
||||
template(annotation_default_name, "annotationDefault") \
|
||||
template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \
|
||||
template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
|
||||
template(ConstantPool_name, "constantPoolOop") \
|
||||
template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\
|
||||
template(reflect_UnsafeStaticFieldAccessorImpl, "jdk/internal/reflect/UnsafeStaticFieldAccessorImpl")\
|
||||
template(base_name, "base") \
|
||||
/* Type Annotations (JDK 8 and above) */ \
|
||||
template(type_annotations_name, "typeAnnotations") \
|
||||
|
@ -870,12 +864,12 @@
|
|||
do_intrinsic(_Class_cast, java_lang_Class, Class_cast_name, object_object_signature, F_R) \
|
||||
do_name( Class_cast_name, "cast") \
|
||||
\
|
||||
do_intrinsic(_getClassAccessFlags, sun_reflect_Reflection, getClassAccessFlags_name, class_int_signature, F_SN) \
|
||||
do_intrinsic(_getClassAccessFlags, reflect_Reflection, getClassAccessFlags_name, class_int_signature, F_SN) \
|
||||
do_name( getClassAccessFlags_name, "getClassAccessFlags") \
|
||||
do_intrinsic(_getLength, java_lang_reflect_Array, getLength_name, object_int_signature, F_SN) \
|
||||
do_name( getLength_name, "getLength") \
|
||||
\
|
||||
do_intrinsic(_getCallerClass, sun_reflect_Reflection, getCallerClass_name, void_class_signature, F_SN) \
|
||||
do_intrinsic(_getCallerClass, reflect_Reflection, getCallerClass_name, void_class_signature, F_SN) \
|
||||
do_name( getCallerClass_name, "getCallerClass") \
|
||||
\
|
||||
do_intrinsic(_newArray, java_lang_reflect_Array, newArray_name, newArray_signature, F_SN) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue