RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v4]
Stuart Marks
smarks at openjdk.java.net
Tue Feb 23 23:34:39 UTC 2021
On Tue, 23 Feb 2021 16:27:06 GMT, Ian Graves <igraves at openjdk.org> wrote:
> Is there any behavior change here that merits a CSR review?
Yes. See my comments in the bug report:
https://bugs.openjdk.java.net/browse/JDK-6323374?focusedCommentId=14296330&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14296330
There is not only the issue of the identity of the object returned, but the change is also observable in the serialized form. Most people would consider the change (less nesting) to be an improvement, but the change is observable, and as we know any observable behavior can become depended upon by applications.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2596
More information about the core-libs-dev
mailing list