-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.util.date Java 11 vs Java 8 different serialization #1719
Comments
Is this still open?...Can I work on this? |
Probably it's related to the CLDR version included in the JDK. |
has been fixed ? |
@Jarvan-Song, not as far as I know. In general it might be good to avoid the default Gson date format though and choose a stable and machine readable one, see also this Stack Overflow question. |
thanks |
I don't know what to make of this, whether its a bug or not - but I think its worth mentioning. If you serialize a
java.util.Date
object, this is what you get with gson 2.8.0Java 8
{"creationDate":"Jun 10, 2020 11:13:39 AM"}
Java 11
{"creationDate":"Jun 10, 2020, 11:14:17 AM"}
see the extra
,
after the year? Java 11 serialized java.util.Date is not deserializable in Java 8.The text was updated successfully, but these errors were encountered: