--- old/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java 2019-07-08 10:38:07.362104315 +0100 +++ new/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java 2019-07-08 10:38:07.034104315 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -585,6 +585,12 @@ // to a negative Calendar.DAY_OF_WEEK DAY_OF_WEEK field value. params[2] = -toCalendarDOW[dow]; } + // Special case for Asia/Gaza and Asia/Hebron following Palestine + // rule where the above hacking of "dom >= 24" won't work. + if (zoneId.equals("Asia/Gaza") || zoneId.equals("Asia/Hebron")) { + params[1] = dom; + params[2] = -toCalendarDOW[dow]; + } } params[3] = startRule.secondOfDay * 1000; params[4] = toSTZTime[startRule.timeDefinition];