RFR:JDK-8160681:LocalDate.ofEpochDay input validation
nadeesh tv
nadeesh.tv at oracle.com
Fri Jul 1 11:38:36 UTC 2016
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 *f**actory_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