[15] RFR: 8236903: ZoneRules#getOffset throws DateTimeException for rules with last rules

Stephen Colebourne scolebourne at joda.org
Wed Jan 22 09:55:39 UTC 2020


Looks good
Stephen

On Tue, 21 Jan 2020 at 21:53, <naoto.sato at oracle.com> wrote:
> 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