mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -168,11 +168,8 @@ inline bool java_lang_invoke_DirectMethodHandle::is_instance(oop obj) {
|
|||
return obj != NULL && is_subclass(obj->klass());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
inline bool java_lang_reflect_Module::is_instance(oop obj) {
|
||||
return obj != NULL && is_subclass(obj->klass());
|
||||
return obj != NULL && obj->klass() == SystemDictionary::reflect_Module_klass();
|
||||
}
|
||||
|
||||
inline int Backtrace::merge_bci_and_version(int bci, int version) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue