-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Generating Jackson serializers for concrete classes only #44080
Conversation
This comment has been minimized.
This comment has been minimized.
@gsmet I don't see any reason why all those tests should fail with JDK21 and I cannot reproduce any of those problems locally. Can you please simply relaunch that job? Or do you have any better explanation? |
@gsmet sorry, ignore my latest comment, for some reason I cannot reproduce the problem from maven CLI but I can when launching those tests from inside the IDE. I need a bit more time to figure out what's happening. |
Status for workflow
|
@mariofusco out of curiosity, what was the issue? |
@gsmet it should be ok now. The problem is that it was uselessly trying to generate serializers also for not concrete classes (abstract classes or interfaces) and moreover trying to register them into the Jackson ObjectMapper caused an error internally to Jackson during serialization. |
That part I understood :). I was more wondering what caused a specific Java 21 failure :) |
Sorry I misunderstood your question :) Actually it was a real bug in my yesterday's commit. It is true that I don't want to generate serializers for abstract classes, but with what I did yesterday it was skipping in the generated serializers for a concrete class the fields eventually inherited from its abstract parent. To be honest I have no clue why this failed only on Java 21. |
OK, thanks! |
Fixes #44069
/cc @gsmet