Skip to content

Fix Jackson 2.21+ compatibility for JREThrowableFinalMethods#1010

Merged
timtebeek merged 1 commit intomainfrom
tim/fix-lombok-best-practices
Mar 16, 2026
Merged

Fix Jackson 2.21+ compatibility for JREThrowableFinalMethods#1010
timtebeek merged 1 commit intomainfrom
tim/fix-lombok-best-practices

Conversation

@timtebeek
Copy link
Member

@timtebeek timtebeek commented Mar 16, 2026

Summary

Changes

This approach is consistent with how ReplaceAWTGetPeerMethod was fixed for Jackson 2.21+ compatibility.

Remove @requiredargsconstructor which generates @ConstructorProperties on the all-args constructor, conflicting with the no-arg @JsonCreator. Change @JsonCreator to accept nullable parameters with defaults, matching the pattern from #1007.

This resolves the InvalidDefinitionException: Conflicting property-based creators reported in issue #1003.
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 16, 2026
@timtebeek timtebeek merged commit c421ab1 into main Mar 16, 2026
1 check passed
@timtebeek timtebeek deleted the tim/fix-lombok-best-practices branch March 16, 2026 22:20
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant