-
Notifications
You must be signed in to change notification settings - Fork 122
*Serializer ignores format pattern if nano-second serialization enabled #248
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
Comments
Thank you @Sam-Kruglov. Actually I was looking for specific cases. I think I can leave this open as a placeholder to include known cases to fix. But one quick note: handling of Actually since the test above specifically tests as-Map-key serialization, I will change the title as well. |
Hmmh. Does that code actually work? This:
should be illegal as it has no type information. EDIT: I was mistaken, see Sam's comment below. |
@cowtowncoder hey, I don't actually remember what I meant by Also, the above example compiles and runs on JDK 11 with no problems, maybe you tried JDK 8? Yes, I can use diamond notation in the type reference as it fills the type in from the declaration. And the example is serializing duration in values, not in keys. Thanks for looking into it! |
@Sam-Kruglov Ok yes, I do build with Java 8. Good to know it might actually work later on. Should have thought this might be it. Learned something new :-) Also yeah, I can see that And I think there may well still be issues for maybe other types so we can open issues once they are encountered. Same goes for Duration-as-Map-key (and others). |
Copying from the previous issue #224
The following example has been fixed but you can try replacing
Duration
withInstant
or any other temporal type to check if the issue reproduces or not:Originally posted by @Sam-Kruglov in #224 (comment)
The text was updated successfully, but these errors were encountered: