Serde of LocalDateTime reduces precision and overflows long #284
Labels
status: in progress
status: pr submitted
A pull request has been submitted for the issue
type: bug
Something isn't working
Expected Behavior
Actual Behaviour
i.m.http.server.RouteExecutor - Unexpected error occurred: long overflow java.lang.ArithmeticException: long overflow at java.base/java.lang.Math.multiplyExact(Math.java:1004) at java.base/java.lang.Math.multiplyExact(Math.java:980) at java.base/java.time.Instant.toEpochMilli(Instant.java:1236) at io.micronaut.serde.support.serdes.LocalDateTimeSerde.serializeWithoutFormat(LocalDateTimeSerde.java:57)
Steps To Reproduce
A simple reactive controller and integration test, mock a service response to the controller and produce a LocalDateTime.MAX/MIN/now(), test equality with what is produced by the test's ReactiveHttpClient.
Environment Information
No response
Example Application
No response
Version
3.8.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: