MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1sx250r/avoiding_final_field_mutation/ojawh6o/?context=3
r/java • u/daviddel • Apr 27 '26
36 comments sorted by
View all comments
Show parent comment
1
The serialization libraries can adapt to this since JEP 500 specifies a new API that allows initializing an object without calling its constructor. However, the object's class needs to implement Serializable.
Serializable
View all comments
Show parent comment
1
u/koflerdavid May 01 '26
The serialization libraries can adapt to this since JEP 500 specifies a new API that allows initializing an object without calling its constructor. However, the object's class needs to implement
Serializable.