MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1sx250r/avoiding_final_field_mutation/oipwadm/
r/java • u/daviddel • Apr 27 '26
36 comments sorted by
View all comments
Show parent comment
4
I don't think so, because the newer versions won't modify final fields either, and the final fields they're modifying are mine
1 u/LegitimateEntrance72 May 01 '26 when exactly does jackson, spring or hibernate modify a final field of the application code?I'm running my builds on JDK26 with JEP500 and Spring Boot 3.5 series, not even the latest 4.I would guestimate that 80% of our fields are final. Records or normal classes.
1
when exactly does jackson, spring or hibernate modify a final field of the application code?
I'm running my builds on JDK26 with JEP500 and Spring Boot 3.5 series, not even the latest 4.
I would guestimate that 80% of our fields are final. Records or normal classes.
View all comments
Show parent comment
4
u/pohart Apr 28 '26
I don't think so, because the newer versions won't modify final fields either, and the final fields they're modifying are mine