<Swing Dev> [12] JDK-8213516: jck test api/javax_accessibility/AccessibleState/fields.html fails intermittent
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Mar 5 23:48:56 UTC 2019
Hi, Shashi.
On 04/03/2019 01:40, Shashidhara Veerabhadraiah wrote:
> Hi Sergey\Phil, Here is a new Webrev containing the new test case along with the fix. With this change, the test fails before the fix and passes after the fix.
>
> http://cr.openjdk.java.net/~sveerabhadra/8213516/webrev.04/
>
> Please review this change.
The hashcode() does not guarantee that it will produce different numbers for different inputs.
You need a compound key like in previous fix(but not in the public APi), or you need a compound map like this:
Hashtable<Locale, Hashtable<String, Hashtable<String, Object>>> table = new Hashtable<>();
--
Best regards, Sergey.
More information about the swing-dev
mailing list