mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8025580: Temporary flags: UseNewReflection and ReflectionWrapResolutionErrors
The fix removes all UseNewReflection/ReflectionWrapResolutionErrors occurrences/logic and adds them into the list of obsolete_jvm_flags in arguments.cpp. Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
54da05d840
commit
cc3c656cf1
13 changed files with 53 additions and 99 deletions
|
@ -1854,7 +1854,7 @@ JVM_ENTRY(jobjectArray, JVM_GetClassDeclaredFields(JNIEnv *env, jclass ofClass,
|
|||
|
||||
if (!publicOnly || fs.access_flags().is_public()) {
|
||||
fd.reinitialize(k(), fs.index());
|
||||
oop field = Reflection::new_field(&fd, UseNewReflection, CHECK_NULL);
|
||||
oop field = Reflection::new_field(&fd, CHECK_NULL);
|
||||
result->obj_at_put(out_idx, field);
|
||||
++out_idx;
|
||||
}
|
||||
|
@ -1932,7 +1932,7 @@ static jobjectArray get_class_declared_methods_helper(
|
|||
if (want_constructor) {
|
||||
m = Reflection::new_constructor(method, CHECK_NULL);
|
||||
} else {
|
||||
m = Reflection::new_method(method, UseNewReflection, false, CHECK_NULL);
|
||||
m = Reflection::new_method(method, false, CHECK_NULL);
|
||||
}
|
||||
result->obj_at_put(i, m);
|
||||
}
|
||||
|
@ -2055,7 +2055,7 @@ static jobject get_method_at_helper(constantPoolHandle cp, jint index, bool forc
|
|||
}
|
||||
oop method;
|
||||
if (!m->is_initializer() || m->is_static()) {
|
||||
method = Reflection::new_method(m, true, true, CHECK_NULL);
|
||||
method = Reflection::new_method(m, true, CHECK_NULL);
|
||||
} else {
|
||||
method = Reflection::new_constructor(m, CHECK_NULL);
|
||||
}
|
||||
|
@ -2105,7 +2105,7 @@ static jobject get_field_at_helper(constantPoolHandle cp, jint index, bool force
|
|||
if (target_klass == NULL) {
|
||||
THROW_MSG_0(vmSymbols::java_lang_RuntimeException(), "Unable to look up field in target class");
|
||||
}
|
||||
oop field = Reflection::new_field(&fd, true, CHECK_NULL);
|
||||
oop field = Reflection::new_field(&fd, CHECK_NULL);
|
||||
return JNIHandles::make_local(field);
|
||||
}
|
||||
|
||||
|
@ -3521,7 +3521,6 @@ JVM_END
|
|||
|
||||
JVM_ENTRY(jobject, JVM_LatestUserDefinedLoader(JNIEnv *env))
|
||||
for (vframeStream vfst(thread); !vfst.at_end(); vfst.next()) {
|
||||
// UseNewReflection
|
||||
vfst.skip_reflection_related_frames(); // Only needed for 1.4 reflection
|
||||
oop loader = vfst.method()->method_holder()->class_loader();
|
||||
if (loader != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue