<AWT Dev> RFR: 8267385: Create NSAccessibilityElement implementation for JavaComponentAccessibility [v2]

Pankaj Bansal pbansal at openjdk.java.net
Thu Jul 8 15:16:56 UTC 2021


On Fri, 2 Jul 2021 12:45:25 GMT, Artem Semenov <github.com+36081106+savoptik at openjdk.org> wrote:

>> 8267385: Create NSAccessibilityElement implementation for JavaComponentAccessibility
>> This pull request contains solutions for the following tickets:
>> * JDK-8267385 Create NSAccessibilityElement implementation for JavaComponentAccessibility;
>> * JDK-8262031 Create implementation for NSAccessibilityNavigableStaticText protocol;
>> * JDK-8264287 Create implementation for NSAccessibilityComboBox protocol peer;
>> * JDK-8264303 Create implementation for NSAccessibilityTabGroup protocol peer;
>> * JDK-8264292 Create implementation for NSAccessibilityList protocol peer;
>> * JDK-8267387 Create implementation for NSAccessibilityOutline protocol;
>> * JDK-8267388 Create implementation for NSAccessibilityTable protocol.
>
> Artem Semenov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Even on Linux? I meant if the test will be run on the platform where a11y is not implemented then this will be

src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/CommonComponentAccessibility.m line 796:

> 794:     CHECK_EXCEPTION();
> 795:     if (!value) {
> 796:         NSLog(@"WARNING: %s called on component that has no accessible component: %@", __FUNCTION__, self);

I see this warning being thrown when trying to use the disabled slider. If we run SwingSet2 and go to Slider demo. Try to navigate to disabled sliders using the VO keys. This warning is thrown when the VO focus is shifted to disabled sliders. I don't see similar warning before this change. This is the warning I see

" WARNING: -[CommonComponentAccessibility isAccessibilityEnabled] called on component that has no accessible component: <SliderAccessibility: 0x7fc938147c00>"

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

PR: https://git.openjdk.java.net/jdk/pull/4412


More information about the awt-dev mailing list