mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8203400: Fix issue with "8199852: Print more information about class loaders in LinkageErrors."
Reviewed-by: dholmes, lfoltan
This commit is contained in:
parent
a455811dca
commit
87ca9d07df
2 changed files with 4 additions and 10 deletions
|
@ -4134,9 +4134,9 @@ const char* java_lang_ClassLoader::describe_external(const oop loader) {
|
|||
oop parentNameOop = java_lang_ClassLoader::name(pl);
|
||||
if (parentNameOop != NULL) {
|
||||
parentName = java_lang_String::as_utf8_string(parentNameOop);
|
||||
if (parentName == NULL) {
|
||||
parentName = "<unnamed>";
|
||||
}
|
||||
}
|
||||
if (parentName == NULL) {
|
||||
parentName = "<unnamed>";
|
||||
}
|
||||
ss.print(", child of \"%s\" %s", parentName, pl->klass()->external_name());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue