RFR 6470126 java.util.jar.Attributes#containsKey fails with Strings
Alan Bateman
Alan.Bateman at oracle.com
Mon May 11 11:54:22 UTC 2020
On 11/05/2020 12:44, Claes Redestad wrote:
> Hi Vipin,
>
> making containsKey("key") return true without also ensuring the
> other Map operations like get, put, .. work consistently and
> transparently with String keys seem like a partial fix that will subtly
> break operations like getOrDefault.
Yeah, I think this one will require going through Attributes all the
consistency issues. The outcome may require a spec clarification to
several methods where it's not currently clear if the input is a String
or a Name.
-Alan
More information about the core-libs-dev
mailing list