Skip to content
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

@JsonbTypeDeserializer is ignored on Enums in 3.0.3; works in 2.0.4 #617

Open
api-from-the-ion opened this issue Oct 5, 2023 · 0 comments
Labels
bug Something isn't working right

Comments

@api-from-the-ion
Copy link

Describe the bug
I wanted a custom Serializer / Deserializer for my enum. I found the adapter code here and separate it into two different classes. But the @JsonbTypeDeserializer is ignored in 3.0.3, and not in 2.0.4. Both @JsonbTypeSerializer and @JsonbTypeAdapter are registered in 3.0.3 and 2.0.4. So it's only @JsonbTypeDeserializer which is ignored.

To Reproduce
I created a small project with both scenarios, Serializer / Deserializer and adapter. One can comment one or another. One can also easily play with Yasson version there and see the test falls through or not.
https://github.com/api-from-the-ion/yasson-enum-bug-evaluation

Expected behavior
The Deserializer and test should work both in 3.x and 2.x versions,

System information:

  • OS: Linux
  • Java Version: 11, 17
  • Yasson Version:3.0.3
@api-from-the-ion api-from-the-ion added the bug Something isn't working right label Oct 5, 2023
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 7, 2023
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 8, 2023
It is working fine right now, but it also could be tested.

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 8, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 8, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 12, 2023
…into try-with-resources.

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 13, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 14, 2023
…oved

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 14, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 14, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 15, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 15, 2023
…e Java 16

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 15, 2023
…t configuration is used

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 15, 2023
…e Java 16

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Oct 25, 2023
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
ossnms added a commit to ossnms/yasson that referenced this issue Feb 2, 2024
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 9, 2024
…plugins update in POM; assertInstanceOf where this is possible

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 12, 2024
…tor & DeserializationModelCreator in serializer / deserializer creation from serializer / deserializer / adapter configuration in annotations

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 12, 2024
…tor & DeserializationModelCreator in serializer / deserializer creation from serializer / deserializer / adapter configuration in annotations

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 12, 2024
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 12, 2024
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 12, 2024
…ctionUtils

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 13, 2024
Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
api-from-the-ion added a commit to api-from-the-ion/yasson that referenced this issue Feb 21, 2024
…or and DeserializationModelCreator; fixed bug in ReflectionUtils

Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

1 participant