diff -r 53a407ab6d22 -r 19b15ff2576b src/hotspot/share/oops/instanceKlass.cpp --- a/src/hotspot/share/oops/instanceKlass.cpp Tue Nov 27 19:46:57 2018 -0500 +++ b/src/hotspot/share/oops/instanceKlass.cpp Tue Nov 27 21:20:16 2018 -0500 @@ -284,19 +284,25 @@ if (log_is_enabled(Trace, class, nestmates)) { ResourceMark rm(THREAD); - log_trace(class, nestmates)("Type %s is not a nest member of resolved type %s: %s", - this->external_name(), - k->external_name(), - error); + log_trace(class, nestmates) + ("Type %s (loader: %s) is not a nest member of " + "resolved type %s (loader: %s): %s", + this->external_name(), + this->class_loader_data()->loader_name_and_id(), + k->external_name(), + k->class_loader_data()->loader_name_and_id(), + error); } if (validationException != NULL) { ResourceMark rm(THREAD); Exceptions::fthrow(THREAD_AND_LOCATION, validationException, - "Type %s is not a nest member of %s: %s", + "Type %s (loader: %s) is not a nest member of %s (loader: %s): %s", this->external_name(), + this->class_loader_data()->loader_name_and_id(), k->external_name(), + k->class_loader_data()->loader_name_and_id(), error ); }