RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v14]
Liam Miller-Cushon
cushon at openjdk.org
Thu Nov 27 09:41:35 UTC 2025
> This change overrides mutator methods in the implementation returned by `Map.of().entrySet()` to throw `UnsupportedOperationException`.
Liam Miller-Cushon has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits:
- Merge commit 'f94644999766e752f7d60ce52c14a7db79005035^' into JDK-8328821-make-clear-consistent
- Add an implementation comment to AbstractImmutableMap
- Update for Stable Values
- Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
- Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
- Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
- Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
- Update test/jdk/java/util/Collection/MOAT.java
Co-authored-by: Chen Liang <liach at openjdk.org>
- Update copyright year
and add the bug number to the modified test
- Update unmodifiable map javadoc
- ... and 8 more: https://git.openjdk.org/jdk/compare/df5b105b...ab5dab9a
-------------
Changes: https://git.openjdk.org/jdk/pull/18522/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18522&range=13
Stats: 120 lines in 3 files changed: 114 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/18522.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18522/head:pull/18522
PR: https://git.openjdk.org/jdk/pull/18522
More information about the core-libs-dev
mailing list