--- a/src/java.base/share/classes/java/util/TimeZone.java Wed Jun 27 09:52:23 2018 +0200
+++ b/src/java.base/share/classes/java/util/TimeZone.java Wed Jun 27 09:36:34 2018 -0400
@@ -39,10 +39,9 @@
package java.util;
import java.io.Serializable;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
import java.time.ZoneId;
-import java.util.Properties;
+
+import jdk.internal.util.StaticProperty;
import sun.security.action.GetPropertyAction;
import sun.util.calendar.ZoneInfo;
import sun.util.calendar.ZoneInfoFile;
@@ -667,7 +666,7 @@
// if the time zone ID is not set (yet), perform the
// platform to Java time zone ID mapping.
if (zoneID == null || zoneID.isEmpty()) {
- String javaHome = props.getProperty("java.home");
+ String javaHome = StaticProperty.javaHome();
try {
zoneID = getSystemTimeZoneID(javaHome);
if (zoneID == null) {