-
Notifications
You must be signed in to change notification settings - Fork 64
Annotation symmetry tests #131
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
Conversation
Equivalent to Map Adapter Symmetry tests
Config adapter does not win in JsonbTypeAdapter test
Equivalent JsonbTypeAdapter test fails with java.lang.ClassCastException: Cannot cast sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl to java.lang.Class
Equivalent JsonbTypeAdapter test EmailClass adapter wins on write
Equivalent JsonbTypeAdapter test fails with ClassCastException
Equivalent JsonbTypeAdapter test EmailClass adapter wins
|
Discoveries:
Note all tests that fail have been marked |
I noticed some differences in behavior on reading vs writing with JsonbTypeAdapters. They appear to have very different code paths and some caching issues that can alter behavior if reads are done after writes.
These test attempt to verify:
First round of tests cover JsonbTypeAdapter, JsonbTypeDeserializer and JsonbTypeSerializer. Tests that fail are ignored so this can be a passing PR. Inconsistencies are documented.
Don't have time now, but would like to return to this at some point in the future to cover JsonbDateFormat, JsonbNumberFormat and the four flavors of JohnzonConverter. I would also like to test meta-annotation versions of the above.