RFR: 8271846 a11y API lacks setSelectedIndex method [v4]

Sergey Bylokhov serb at openjdk.org
Fri Nov 11 21:44:37 UTC 2022


On Fri, 11 Nov 2022 09:12:21 GMT, Artem Semenov <asemenov at openjdk.org> wrote:

>> src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java line 574:
>> 
>>> 572:                     return;
>>> 573:                 }
>>> 574:                 as.addAccessibleSelection(i);
>> 
>> I would like to clarify one initial question. Why we cannot use `clearAccessibleSelection `to clean the current selection and then add a new one by the `addAccessibleSelection`?
>
> We tried to do this, it leads to an endless repetition of the selected line until it freezes.

Probably because of the endless notifications loop? implementation of addSelectionInterval looks similar to setSelectionInterval. In some cases the addSelectionInterval just call setSelectionInterval.

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

PR: https://git.openjdk.org/jdk/pull/8578



More information about the client-libs-dev mailing list