8320002: Remove obsolete CDS check in Reflection::verify_class_access()

Reviewed-by: iklam, matsaave, dholmes
This commit is contained in:
Calvin Cheung 2024-02-20 21:10:09 +00:00
parent d2590c69b4
commit 221fbfb436

View File

@ -457,12 +457,6 @@ Reflection::VerifyClassAccessResults Reflection::verify_class_access(
// module boundaries
if (new_class->is_public()) {
// Ignore modules for -Xshare:dump because we do not have any package
// or module information for modules other than java.base.
if (CDSConfig::is_dumping_static_archive()) {
return ACCESS_OK;
}
// Find the module entry for current_class, the accessor
ModuleEntry* module_from = current_class->module();
// Find the module entry for new_class, the accessee