mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
f47008ae10
commit
6066d30e17
4 changed files with 9 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue