JDK-8274864 : Remove Amman/Cairo hacks in ZoneInfoFile
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-10-06
  • Updated: 2021-10-08
  • Resolved: 2021-10-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 masterFixed
Related Reports
Relates :  
Description
There's a piece of hacks in sun/util/calendar/ZoneInfoFile.java, to tweak endOfDay rules for Asia/Amman and Africa/Cairo. These hacks are no longer needed as secondOfDay holds correct values, even beyond the end of day. It is a leftover of JDK-8212970.
In fact, the hacks would be problematic, say if Jordan had a DST starting rule at "lastFri & startTime= 0:00", it would be incorrectly translated into "lastThu & startTime=24:00"
Comments
Changeset: ec199072 Author: Naoto Sato <naoto@openjdk.org> Date: 2021-10-08 16:11:22 +0000 URL: https://git.openjdk.java.net/jdk/commit/ec199072c5867624d66840238cc8828e16ae8da7
08-10-2021