Skip to content

Conversation

@stevenschlansker
Copy link
Contributor

Turns out this is currently necessary for Scala and Kotlin data classes.
Mutating final fields will still eventually go away once the JVM forbids it, but we don't necessarily have to force the issue now.

Followup to #5090

@cowtowncoder
Copy link
Member

@stevenschlansker We also have MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS but that is already disabled for 3.0 so not sure why that didn't cause these problems.

Oh well, on short term let's just do this to unblock. Thanks!

@cowtowncoder cowtowncoder merged commit b960382 into FasterXML:3.x May 9, 2025
6 checks passed
@stevenschlansker
Copy link
Contributor Author

I hope this fixes all outstanding issues. Please let me know if you find more 😄

@cowtowncoder
Copy link
Member

@stevenschlansker All went well as far as I can see, and specifically Kotlin & Scala modules were re-built without further failures! So I think we are good to go wrt this feature!

@stevenschlansker
Copy link
Contributor Author

Fantastic!

@stevenschlansker stevenschlansker deleted the reenable-final branch May 9, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants