On Fri, 11 Mar 2022 15:39:31 GMT, Srinivas Mandalika <smandal...@openjdk.org> 
wrote:

>> Create a regression test for JDK-4699544
>> 
>> The subclass of javax.swing.JRootPane (AccessibleJRootPane) that implements 
>> the accessibility interface javax.accessibility.AccessibleComponent is 
>> derived from java.awt.AccessibleAWTComponent, which returns null for 
>> getAccessibleAt() because a component does not necessarily have childs.
>> 
>> The root pane always has a content pane child, so getAccessibleAt() should 
>> be overwritten by AccessibleJRootPane appropriately.
>> The test added verifies the same.
>> This review is for migrating tests from a closed test suite to open.
>
> Srinivas Mandalika has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Added @bug keyword

test/jdk/javax/accessibility/4699544/JRootPaneAccessiblAtTest.java line 55:

> 53: 
> 54:     public static void main(String args[]) {
> 55:         new JRootPaneAccessiblAtTest();

This is the subclass of the JFrame, which should be accessed on the EDT.

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

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

Reply via email to