--- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/FactoryFinder.java Fri Feb 10 00:39:51 2017 -0800
+++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/FactoryFinder.java Thu Feb 16 13:14:39 2017 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -245,10 +245,14 @@
return null;
}
- private static String getSystemProperty(String property) {
+ private static String getSystemProperty(final String property) {
logger.log(Level.FINE, "Checking system property {0}", property);
- String value = AccessController.doPrivileged(
- (PrivilegedAction<String>) () -> System.getProperty(property));
+ String value = AccessController.doPrivileged(new PrivilegedAction<String>() {
+ @Override
+ public String run() {
+ return System.getProperty(property);
+ }
+ });
logFound(value);
return value;
}