8160487: JVM should validate a module by checking for an instance of java.lang.reflect.Module

Correct the checking of an instance of java.lang.reflect.Module to validate a module

Reviewed-by: alanb, coleenp, redestad
This commit is contained in:
Lois Foltan 2016-07-28 09:57:49 -04:00
parent f47008ae10
commit 6066d30e17
4 changed files with 9 additions and 14 deletions

View file

@ -777,9 +777,6 @@ class java_lang_reflect_Module {
static Handle create(Handle loader, Handle module_name, TRAPS);
// Testers
static bool is_subclass(Klass* klass) {
return klass->is_subclass_of(SystemDictionary::reflect_Module_klass());
}
static bool is_instance(oop obj);
// Accessors