RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v8]
Liam Miller-Cushon
cushon at openjdk.org
Wed Dec 4 00:10:51 UTC 2024
On Mon, 2 Dec 2024 16:50:20 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
>> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 12 additional commits since the last revision:
>
> - 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
> - Also throw UOE for mutators on keySet() and values()
>
> and add more test coverage to MOAT.
> - Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
> - Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
> - Check m.entrySet().hashCode() in MOAT
> - Merge remote-tracking branch 'origin/master' into JDK-8328821-make-clear-consistent
> - Use AbstractImmutableSet
> - ... and 2 more: https://git.openjdk.org/jdk/compare/38d24868...223164c4
Please keep open
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18522#issuecomment-2515843423
More information about the core-libs-dev
mailing list