[15] RFR: 8236903: ZoneRules#getOffset throws DateTimeException for rules with last rules
naoto.sato at oracle.com
naoto.sato at oracle.com
Tue Jan 21 21:50:14 UTC 2020
Hi,
Please review the fix to the following issue:
https://bugs.openjdk.java.net/browse/JDK-8236903
The proposed changeset is located at:
http://cr.openjdk.java.net/~naoto/8236903/webrev.00/
This edge case throws an out-of-bounds DateTimeException in
ZoneRules.findYear() on calculating the year. Instead of relying on
LocalDate.ofEpochDay(), inlining the year caluculation from that method,
and cap to the MAX value if needed, will solve the issue.
Naoto
More information about the core-libs-dev
mailing list