Re:Java 11 released
by chinhodado on Wednesday September 26, 2018 @01:01PM
(#18077969)
> where one reference gives you the data immutably while the other one lets you change it
What do you mean, it's not like that at all. You only get back the same object (same reference) if it detects the object was immutable to begin with.
So you can get a "reference" to the same data where one reference gives you the data immutably while the other one lets you change it. Sounds like a recipe for subtle bugs.