--- old/src/hotspot/share/runtime/reflection.cpp 2020-03-26 15:59:48.000000000 -0700 +++ new/src/hotspot/share/runtime/reflection.cpp 2020-03-26 15:59:48.000000000 -0700 @@ -711,7 +711,7 @@ // Checks that the 'outer' klass has declared 'inner' as being an inner klass. If not, // throw an incompatible class change exception // If inner_is_member, require the inner to be a member of the outer. -// If !inner_is_member, require the inner to be unsafe anonymous (a non-member). +// If !inner_is_member, require the inner to be hidden or unsafe anonymous (non-members). // Caller is responsible for figuring out in advance which case must be true. void Reflection::check_for_inner_class(const InstanceKlass* outer, const InstanceKlass* inner, bool inner_is_member, TRAPS) {