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

Disallow object-mapping final fields #202

Open
zml2008 opened this issue May 6, 2021 · 0 comments
Open

Disallow object-mapping final fields #202

zml2008 opened this issue May 6, 2021 · 0 comments
Labels
breaking Breaking changes that are slated for next major versions component/core
Milestone

Comments

@zml2008
Copy link
Member

zml2008 commented May 6, 2021

While we currently are able to write to final fields, it is uncertain whether this functionality will continue to work on future versions of Java or in a modular environment.

Configurate should start emitting a warning when attempting to write to final fields in the object mapper, which will eventually become an error (either by the choice of Configurate or the choice of Java).

@zml2008 zml2008 added breaking Breaking changes that are slated for next major versions component/core labels May 6, 2021
@zml2008 zml2008 added this to the 4.2 milestone Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking changes that are slated for next major versions component/core
Projects
None yet
Development

No branches or pull requests

1 participant