You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send it over the network to a Native client. Parsing this date will fail.
Why? The reason is that LocalDate, LocalDateTime, and Instant have different platform-specific ranges on different platforms.
It may be surprising that some values produced, then serialized and deserialized purely by the code in our library fail to work on the same version of our library on a different platform.
The proposal: align all platform-specific ranges to be the same.
Cons:
Slightly less efficient implementation.
The enormous dates and instants are hard to come by: on Native, the range is generous -1000000..1000000 years, enough for all realistic use cases. Java-specific sentinel values are the one exception.
The text was updated successfully, but these errors were encountered:
Create a giant local date on a JVM server:
Send it over the network to a Native client. Parsing this date will fail.
Why? The reason is that
LocalDate
,LocalDateTime
, andInstant
have different platform-specific ranges on different platforms.It may be surprising that some values produced, then serialized and deserialized purely by the code in our library fail to work on the same version of our library on a different platform.
The proposal: align all platform-specific ranges to be the same.
Cons:
-1000000..1000000
years, enough for all realistic use cases. Java-specific sentinel values are the one exception.The text was updated successfully, but these errors were encountered: