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

Try fixing #4302 different way #4314

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Try fixing #4302 different way #4314

merged 2 commits into from
Jan 12, 2024

Conversation

cowtowncoder
Copy link
Member

@cowtowncoder cowtowncoder commented Jan 11, 2024

Ok, the initial #4302 fix is incorrect in that it tries to change how Enum-valued properties are (not to be) renamed: what is needed is fields of Enum values themselves. This PR adds test to catch the issue with original approach and tries different fix.

I'm also getting bit nervous on merging this in 2.16, however, the original issue is nasty enough that this is probably required.

@cowtowncoder cowtowncoder added the 2.16 Issues planned for 2.16 label Jan 11, 2024
@cowtowncoder
Copy link
Member Author

Ugh. While fixing the newish issue, this would break "Enum as POJO" handling where we DO want renaming to occur...

On plus side there's a test (now failing). On down side, it gets tricky. Probably cannot avoid renaming handling after all.

@cowtowncoder
Copy link
Member Author

/cc @JooHyukKim

@cowtowncoder
Copy link
Member Author

I'll also see if #4313 makes sense: I am not convinced but will keep on looking when I have time.

@cowtowncoder
Copy link
Member Author

@JooHyukKim I think this fundamentally stems from that one change to Enum handling where Enum value constants, STATIC fields are included along with "regular" ones. I can possibly work around that issue in POJOPropertyCollector, to resolve seeming conflict.

@cowtowncoder
Copy link
Member Author

cowtowncoder commented Jan 12, 2024

@JooHyukKim I think this works, will merge.

@cowtowncoder cowtowncoder merged commit 48de322 into 2.16 Jan 12, 2024
5 checks passed
@cowtowncoder cowtowncoder deleted the tatu/2.16/4302-second-fix branch January 12, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.16 Issues planned for 2.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant