8525ac48a9
Update release notes to 11.0.19.0+7 Require tzdata 2023c due to local inclusion of JDK-8274864 & JDK-8305113 Update generate_tarball.sh to add support for passing a boot JDK to the configure run Add POSIX-friendly error codes to generate_tarball.sh and fix whitespace Remove .jcheck and GitHub support when generating tarballs, as done in upstream release tarballs Rebase FIPS support against 11.0.19+6 Rebase RH1750419 alt-java patch against 11.0.19+6 Replace local copies of JDK portable binaries with build dependencies Use portable build on x86_32 now one is available ** This tarball is embargoed until 2023-04-18 @ 1pm PT. ** Related: RHEL-30918
56 lines
2.9 KiB
Diff
56 lines
2.9 KiB
Diff
commit b4caafe16f14983e303b7f1fdf3090e5c513ebd8
|
|
Author: Andrew John Hughes <andrew@openjdk.org>
|
|
Date: Thu Apr 13 15:37:20 2023 +0000
|
|
|
|
8274864: Remove Amman/Cairo hacks in ZoneInfoFile
|
|
|
|
Backport-of: ec199072c5867624d66840238cc8828e16ae8da7
|
|
|
|
diff --git a/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java b/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
|
|
index 1dc82561f2..a51490767d 100644
|
|
--- a/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
|
|
+++ b/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
|
|
@@ -607,34 +607,6 @@ public final class ZoneInfoFile {
|
|
params[8] = endRule.secondOfDay * 1000;
|
|
params[9] = toSTZTime[endRule.timeDefinition];
|
|
dstSavings = (startRule.offsetAfter - startRule.offsetBefore) * 1000;
|
|
-
|
|
- // Note: known mismatching -> Asia/Amman
|
|
- // ZoneInfo : startDayOfWeek=5 <= Thursday
|
|
- // startTime=86400000 <= 24 hours
|
|
- // This: startDayOfWeek=6
|
|
- // startTime=0
|
|
- // Similar workaround needs to be applied to Africa/Cairo and
|
|
- // its endDayOfWeek and endTime
|
|
- // Below is the workarounds, it probably slows down everyone a little
|
|
- if (params[2] == 6 && params[3] == 0 &&
|
|
- (zoneId.equals("Asia/Amman"))) {
|
|
- params[2] = 5;
|
|
- params[3] = 86400000;
|
|
- }
|
|
- // Additional check for startDayOfWeek=6 and starTime=86400000
|
|
- // is needed for Asia/Amman;
|
|
- if (params[2] == 7 && params[3] == 0 &&
|
|
- (zoneId.equals("Asia/Amman"))) {
|
|
- params[2] = 6; // Friday
|
|
- params[3] = 86400000; // 24h
|
|
- }
|
|
- //endDayOfWeek and endTime workaround
|
|
- if (params[7] == 6 && params[8] == 0 &&
|
|
- (zoneId.equals("Africa/Cairo"))) {
|
|
- params[7] = 5;
|
|
- params[8] = 86400000;
|
|
- }
|
|
-
|
|
} else if (nTrans > 0) { // only do this if there is something in table already
|
|
if (lastyear < LASTYEAR) {
|
|
// ZoneInfo has an ending entry for 2037
|
|
@@ -907,7 +879,6 @@ public final class ZoneInfoFile {
|
|
this.dow = dowByte == 0 ? -1 : dowByte;
|
|
this.secondOfDay = timeByte == 31 ? in.readInt() : timeByte * 3600;
|
|
this.timeDefinition = (data & (3 << 12)) >>> 12;
|
|
-
|
|
this.standardOffset = stdByte == 255 ? in.readInt() : (stdByte - 128) * 900;
|
|
this.offsetBefore = beforeByte == 3 ? in.readInt() : standardOffset + beforeByte * 1800;
|
|
this.offsetAfter = afterByte == 3 ? in.readInt() : standardOffset + afterByte * 1800;
|