Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8153044

Allow a property to control location of tzdb.dat file

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 8u71
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Submitter would like either an environment variable or a system property to control the path to tzdb.dat.

      Currently jdk8u and 9 both have pre-set path and would like to be able to override the calculated location of that file with a system property.

      Current path is hardcoded in JDK :

                  String libDir = System.getProperty("java.home") + File.separator + "lib";
                  try (DataInputStream dis = new DataInputStream(
                           new BufferedInputStream(new FileInputStream(
                               new File(libDir, "tzdb.dat"))))) {
                      load(dis);

        Attachments

          Activity

            People

            • Assignee:
              coffeys Sean Coffey
              Reporter:
              shadowbug Shadow Bug
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: