RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v13]
Stuart Marks
smarks at openjdk.org
Tue Sep 2 17:00:51 UTC 2025
On Fri, 30 May 2025 03:59:37 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:
>
> Add an implementation comment to AbstractImmutableMap
My turn to keep this open. :-)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18522#issuecomment-3246112175
More information about the core-libs-dev
mailing list