< prev index next >

src/java.base/share/classes/sun/security/ssl/ClientKeyExchangeService.java

Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs

*** 48,61 **** static class Loader { private static final Map<String,ClientKeyExchangeService> providers = new HashMap<>(); static { ! final String key = "java.home"; ! String path = AccessController.doPrivileged( ! new GetPropertyAction(key), null, ! new PropertyPermission(key, "read")); ServiceLoader<ClientKeyExchangeService> sc = AccessController.doPrivileged( (PrivilegedAction<ServiceLoader<ClientKeyExchangeService>>) () -> ServiceLoader.loadInstalled(ClientKeyExchangeService.class), null, --- 48,58 ---- static class Loader { private static final Map<String,ClientKeyExchangeService> providers = new HashMap<>(); static { ! String path = GetPropertyAction.getProperty("java.home"); ServiceLoader<ClientKeyExchangeService> sc = AccessController.doPrivileged( (PrivilegedAction<ServiceLoader<ClientKeyExchangeService>>) () -> ServiceLoader.loadInstalled(ClientKeyExchangeService.class), null,
< prev index next >