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:
Harold Seigel 2016-11-17 14:23:29 -05:00
parent 81f1e7056b
commit ccbb28f6a0
6 changed files with 161 additions and 9 deletions

View file

@ -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);