RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v5]

Chen Liang liach at openjdk.org
Tue Jul 9 22:45:19 UTC 2024


On Tue, 9 Jul 2024 22:40:41 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 incrementally with one additional commit since the last revision:
> 
>   Update unmodifiable map javadoc

All three files can have their copyright year updated.

-------------

PR Review: https://git.openjdk.org/jdk/pull/18522#pullrequestreview-2167632144


More information about the core-libs-dev mailing list