On Wed, 14 Dec 2022 10:47:09 GMT, Artem Semenov <[email protected]> wrote:
> [OutlineRowAccessibility currentAccessibleWithENV:] defines the
> getCurrentComponent method on the AccessibleContext instance of
> AccessibleJTreeNode class, however the call should go through CAccessibility
> so that it is executed on the Event Dispatch thread.
src/java.desktop/share/classes/javax/swing/JList.java line 3234:
> 3232: static {
> 3233: AccessibleComponentAccessor.addAccessor(c ->
> 3234: c instanceof
> JList.AccessibleJList.AccessibleJListChild ?
> ((JList.AccessibleJList.AccessibleJListChild) c).getCurrentComponent() :
> null);
Please split the long lines to have 80 chars per line.
src/java.desktop/share/classes/sun/swing/AccessibleComponentAccessor.java line
42:
> 40: }
> 41:
> 42: public static Accessible getAccessible(AccessibleContext context) {
Will the fix have more code if it will be implemented via SwingAccessor just to
access that "private" method?
-------------
PR: https://git.openjdk.org/jdk/pull/11670