[jdk21u-dev] RFR: 8292955: Collections.checkedMap Map.merge does not properly check key and value

Goetz Lindenmaier goetz at openjdk.org
Fri May 9 08:04:01 UTC 2025


On Thu, 1 May 2025 17:31:12 GMT, Daniel Hu <duke at openjdk.org> wrote:

> Clean backport. This ensures Collections.checkedMap Map.merge fails when key value types don't match. Affected test on linux x64 and GHA passes.
> 
> I'm not entirely sure if this would be a good backport, given that this would change the behavior in the scenario of a failed type mismatch. Nevertheless, I wanted to submit a request to check whether these type of backports are acceptable.

I successfully ran this through SAP's testing.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1730#issuecomment-2865559785


More information about the jdk-updates-dev mailing list