mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8319436: Proxy.newProxyInstance throws NPE if loader is null and interface not visible from class loader
Reviewed-by: alanb
This commit is contained in:
parent
82747132b0
commit
8eb6f617b3
2 changed files with 64 additions and 121 deletions
|
@ -2667,7 +2667,7 @@ public final class System {
|
|||
}
|
||||
|
||||
public String getLoaderNameID(ClassLoader loader) {
|
||||
return loader.nameAndId();
|
||||
return loader != null ? loader.nameAndId() : "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue