< prev index next >
src/hotspot/share/oops/instanceKlass.cpp
Print this page
*** 2709,2719 ****
}
if (is_hidden() &&
in_unnamed_package() &&
class_loader_data()->has_class_mirror_holder()) {
! // For a weak hidden class defined to an unnamed package,
// its (class held) CLD will not have an unnamed module created for it.
// Two choices to find the correct ModuleEntry:
// 1. If hidden class is within a nest, use nest host's module
// 2. Find the unnamed module off from the class loader
// For now option #2 is used since a nest host is not set until
--- 2709,2719 ----
}
if (is_hidden() &&
in_unnamed_package() &&
class_loader_data()->has_class_mirror_holder()) {
! // For a non-strong hidden class defined to an unnamed package,
// its (class held) CLD will not have an unnamed module created for it.
// Two choices to find the correct ModuleEntry:
// 1. If hidden class is within a nest, use nest host's module
// 2. Find the unnamed module off from the class loader
// For now option #2 is used since a nest host is not set until
< prev index next >