8302791: Add specific ClassLoader object to Proxy IllegalArgumentException message

Reviewed-by: alanb, mchung
This commit is contained in:
Ravali Yatham 2023-03-07 22:31:50 +00:00 committed by Mandy Chung
parent b5b5cba7fe
commit 9f9d678591
4 changed files with 15 additions and 1 deletions

View file

@ -2663,6 +2663,10 @@ public final class System {
Continuation continuation) {
return StackWalker.newInstance(options, null, contScope, continuation);
}
public String getLoaderNameID(ClassLoader loader) {
return loader.nameAndId();
}
});
}
}