RFR: 8211990: DateTimeException thrown when calculating duration between certain dates

naoto.sato at oracle.com naoto.sato at oracle.com
Mon Aug 12 20:43:37 UTC 2019


Please review the fix to the following issue:


The proposed changeset is located at:


The DateTimeException was thrown due to unconditional conversion beyond 
the valid range of the internal LocalDateTime value. If it happens, 
normalize two instants with the offset of "start" instant. The same kind 
of exception is observed with ZonedDateTime.until(), which is also fixed 
in this changeset.


More information about the core-libs-dev mailing list