mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -487,7 +487,7 @@ Reflection::VerifyClassAccessResults Reflection::verify_class_access(
|
|||
is_same_class_package(current_class, new_class)) {
|
||||
return ACCESS_OK;
|
||||
}
|
||||
// Allow all accesses from sun/reflect/MagicAccessorImpl subclasses to
|
||||
// Allow all accesses from jdk/internal/reflect/MagicAccessorImpl subclasses to
|
||||
// succeed trivially.
|
||||
if (current_class->is_subclass_of(SystemDictionary::reflect_MagicAccessorImpl_klass())) {
|
||||
return ACCESS_OK;
|
||||
|
@ -698,7 +698,7 @@ bool Reflection::verify_field_access(const Klass* current_class,
|
|||
return true;
|
||||
}
|
||||
|
||||
// Allow all accesses from sun/reflect/MagicAccessorImpl subclasses to
|
||||
// Allow all accesses from jdk/internal/reflect/MagicAccessorImpl subclasses to
|
||||
// succeed trivially.
|
||||
if (current_class->is_subclass_of(SystemDictionary::reflect_MagicAccessorImpl_klass())) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue