mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8166304: Skipping access check for classes generated by core reflection
Only allow boot and reflection class loader to load sub-types of jdk.internal.reflect Reviewed-by: acorn, lfoltan, rehn
This commit is contained in:
parent
81f1e7056b
commit
ccbb28f6a0
6 changed files with 161 additions and 9 deletions
|
@ -1243,6 +1243,10 @@ class java_lang_ClassLoader : AllStatic {
|
|||
|
||||
static bool is_trusted_loader(oop loader);
|
||||
|
||||
// Return true if this is one of the class loaders associated with
|
||||
// the generated bytecodes for reflection.
|
||||
static bool is_reflection_class_loader(oop loader);
|
||||
|
||||
// Fix for 4474172
|
||||
static oop non_reflection_class_loader(oop loader);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue