--- old/src/hotspot/share/runtime/reflection.cpp 2020-03-08 18:58:38.106729631 -0400 +++ new/src/hotspot/share/runtime/reflection.cpp 2020-03-08 18:58:36.907716344 -0400 @@ -684,7 +684,9 @@ if (current_class->is_instance_klass() && member_class->is_instance_klass() ) { InstanceKlass* cur_ik = const_cast(InstanceKlass::cast(current_class)); InstanceKlass* field_ik = const_cast(InstanceKlass::cast(member_class)); - bool access = cur_ik->has_nestmate_access_to(field_ik, THREAD); + // Nestmate access checks may require resolution and validation of the nest-host. + // It is up to the caller to check for pending exceptions and handle appropriately. + bool access = cur_ik->has_nestmate_access_to(field_ik, CHECK_false); if (access) { guarantee(resolved_class->is_subclass_of(member_class), "must be!"); return true;