RFR:JDK-8160681:LocalDate.ofEpochDay input validation

Stephen Colebourne scolebourne at joda.org
Fri Jul 1 12:23:02 UTC 2016


Fine by me, thanks
Stephen

On 1 July 2016 at 12:38, nadeesh tv <nadeesh.tv at oracle.com> wrote:
> Hi all,
>
> Bug Id :  https://bugs.openjdk.java.net/browse/JDK-8160681
>
> Issue:  Epoch day  parameter to LocalDate.ofEpochDay()  was not validating
>
> Webrev: http://cr.openjdk.java.net/~bgopularam/ntv/8160681/webrev.00/
>
> Tests are already covered under  factory_ofEpochDay_aboveMax() ,
> factory_ofEpochDay_belowMin() .
>
> Error was obscured. It  was throwing  DateTimeException because of
> internally calculated YEAR was going out of range. Now it will throw
> exception due to expected issue 'epoch day is out of range'.
>
> --
> Thanks and Regards,
> Nadeesh TV
>


More information about the core-libs-dev mailing list