src/java.base/share/classes/java/time/zone/TzdbZoneRulesProvider.java
changeset 50817 fa1e04811ff6
parent 47216 71c04702a3d5
--- a/src/java.base/share/classes/java/time/zone/TzdbZoneRulesProvider.java	Wed Jun 27 09:52:23 2018 +0200
+++ b/src/java.base/share/classes/java/time/zone/TzdbZoneRulesProvider.java	Wed Jun 27 09:36:34 2018 -0400
@@ -61,19 +61,19 @@
  */
 package java.time.zone;
 
+import jdk.internal.util.StaticProperty;
+
 import java.io.ByteArrayInputStream;
 import java.io.BufferedInputStream;
 import java.io.DataInputStream;
 import java.io.File;
 import java.io.FileInputStream;
-import java.io.IOException;
 import java.io.StreamCorruptedException;
 import java.util.Arrays;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
-import java.util.Objects;
 import java.util.Set;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
@@ -106,7 +106,7 @@
      */
     public TzdbZoneRulesProvider() {
         try {
-            String libDir = System.getProperty("java.home") + File.separator + "lib";
+            String libDir = StaticProperty.javaHome() + File.separator + "lib";
             try (DataInputStream dis = new DataInputStream(
                      new BufferedInputStream(new FileInputStream(
                          new File(libDir, "tzdb.dat"))))) {