--- old/src/java.base/share/classes/java/time/LocalDate.java 2016-07-01 14:19:50.752178748 +0300 +++ new/src/java.base/share/classes/java/time/LocalDate.java 2016-07-01 14:19:50.558178748 +0300 @@ -338,6 +338,7 @@ * @throws DateTimeException if the epoch day exceeds the supported date range */ public static LocalDate ofEpochDay(long epochDay) { + EPOCH_DAY.checkValidValue(epochDay); long zeroDay = epochDay + DAYS_0000_TO_1970; // find the march-based year zeroDay -= 60; // adjust to 0000-03-01 so leap day is at end of four year cycle