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

Need solution for the special handing in sun.util.calendar.ZoneInfoFile for tz Amman, Gaza and Hebron

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8

      Description

                      // Note: known mismatching -> Asia/Amman
                      // Asia/Gaza
                      // Asia/Hebron
                      // ZoneInfo : startDayOfWeek=5 <= Thursday
                      // startTime=86400000 <= 24 hours
                      // This: startDayOfWeek=6
                      // startTime=0
                      // Below is the workaround, it probably slows down everyone a little
                      if (params[2] == 6 && params[3] == 0 &&
                          (zoneId.equals("Asia/Amman") ||
                           zoneId.equals("Asia/Gaza") ||
                           zoneId.equals("Asia/Hebron"))) {
                          params[2] = 5;
                          params[3] = 86400000;
                      }

        Attachments

          Activity

            People

            • Assignee:
              sherman Xueming Shen
              Reporter:
              sherman Xueming Shen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: