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

tzdb.dat compilation failure when using tzdata2014j

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        The following error was observed during compilation of tzdb.dat with latest JDK9 source:
        Failed: java.time.zone.ZoneRulesException: Unknown time-zone ID: Africa/Asmera
        java.time.zone.ZoneRulesException: Unknown time-zone ID: Africa/Asmera
        at build.tools.tzdb.TzdbZoneRulesProvider.getZoneRules(TzdbZoneRulesProvider.java:98)
        at build.tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:194)
        at build.tools.tzdb.TzdbZoneRulesCompiler.main(TzdbZoneRulesCompiler.java:89)

        The issue was observed during latest tzdata2014j integration (JDK-8064560).
        The issue is cause by the following timezone linking behavior:
        There is a Zone with name 'Africa/Nairobi' (defined in 'africa' tzdata file).
        The zone link with name 'Africa/Asmara' is defined in the same 'africa' file. This link refers to 'Africa/Nairobi'.
        And there is another link with name 'Africa/Asmera' defined in 'backward' tz file. It is linked to 'Africa/Asmara'.
        It means that 'Africa/Asmera' linked to 'Africa/Nairobi' through another link (double link chain).
        It seems that the current implementation of Tzdb compiler supports only direct links (link to the zone, but not to another link).

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aefimov Aleksej Efimov
                  Reporter:
                  aefimov Aleksej Efimov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: