RFR: 8328821: Map.of().entrySet() mutators should throw UnsupportedOperationException

Stuart Marks smarks at openjdk.org
Fri May 24 17:12:04 UTC 2024


On Wed, 27 Mar 2024 17:36:28 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`.

Sorry for the delay, I'm still totally backlogged on other stuff. I can't commit to get this into JDK 23.

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

PR Comment: https://git.openjdk.org/jdk/pull/18522#issuecomment-2130014264


More information about the core-libs-dev mailing list