<Swing Dev> [11][JDK-8197785]javax.accessibility.AccessibilityBundle will reload the ResourceBundle for every call to toDisplayString
Philip Race
philip.race at oracle.com
Sat Mar 3 16:14:07 UTC 2018
The fix is straightforward and I've seen this bug pattern before.
In fact there may even have been a sweep for uses of contains() to make
sure it was as intended,
but if so it wasn't thorough enough.
But I'm wondering why the test extends Button and not JButton ?
I'm then further wondering if it could then be made headless .. ie no
need to create or display a Frame ?
-phil.
On 3/3/18, 6:30 AM, Krishna Addepalli wrote:
>
> Hi All,
>
> Please review a simple fix for JDK-8197785:
> https://bugs.openjdk.java.net/browse/JDK-8197785
>
> Webrev: http://cr.openjdk.java.net/~kaddepalli/8197785/webrev00/
> <http://cr.openjdk.java.net/%7Ekaddepalli/8197785/webrev00/>
>
> As the bug description suggests, AccessibleBundle.loadResourceBundle
> has the line "table.contains" which causes it to reload the resource
> bundle for each call.
>
> Changing it to "table.containsKey" fixes the problem.
>
> Thanks,
>
> Krishna
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20180303/bd4ae4c6/attachment.html>
More information about the swing-dev
mailing list