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

Serialization of generic root type with custom serializer not working #639

Open
bpasson opened this issue Feb 7, 2024 · 0 comments
Open
Labels
bug Something isn't working right

Comments

@bpasson
Copy link

bpasson commented Feb 7, 2024

Describe the bug
When using a custom serializer for a generic root type yasson does not use it when you specify the generic type in stead of the raw type.

To Reproduce
I created a small reproducer project which demonstrates the issue.

  1. git clone https://github.com/bpasson/eclipse-yasson-issue-639
  2. cd eclipse-yasson-issue-639
  3. ./mvnw clean verify

See the failing test cases.

Expected behavior
At least the TypedRecordSerializerParameterized from the reproducer project should be used to serialize the TypedRecord instances. Both TypedRecordSerializerParameterized and TypedRecordSerializerRaw working might be fine too, but I cannot see if that causes difficulties elsewhere.

System information:

  • OS: Mac
  • Java Version: 21
  • Yasson Version: 3.0.3
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