8150521: SharedSecrets.getJavaNetInetAddressAccess should ensure that InetAddress is initialised

Reviewed-by: alanb, chegar
This commit is contained in:
Vyom Tewari 2016-03-03 17:27:35 +00:00
parent 96f1a8250d
commit b053911474

View File

@ -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;
} }