8150521: SharedSecrets.getJavaNetInetAddressAccess should ensure that InetAddress is initialised
Reviewed-by: alanb, chegar
This commit is contained in:
parent
96f1a8250d
commit
b053911474
@ -118,6 +118,8 @@ public class SharedSecrets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static JavaNetInetAddressAccess getJavaNetInetAddressAccess() {
|
public static JavaNetInetAddressAccess getJavaNetInetAddressAccess() {
|
||||||
|
if (javaNetInetAddressAccess == null)
|
||||||
|
unsafe.ensureClassInitialized(java.net.InetAddress.class);
|
||||||
return javaNetInetAddressAccess;
|
return javaNetInetAddressAccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user