Commit bb0cfd3
Tom Gottfried
Fix serializing java.sql.Timestamp
SqlTimestampSerializer missed to override toTemporalAccessor,
leading to ClassCastExceptions in the default implementation in
AbstractDateSerializer. Since it does all formatting after
calling toInstant on the value, we can safely use the same code
path as is used for java.util.Date (despite what is said about
the inheritance relationship between Date and Timestamp in their
API documentation).
Closes #687.1 parent 93eefea commit bb0cfd3
File tree
2 files changed
+1
-44
lines changed- src/main/java/org/eclipse/yasson/internal/serializer/types
2 files changed
+1
-44
lines changedLines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments