RFR: JDK-8282778: Create a regression test for JDK-4699544 [v2]

Sergey Bylokhov serb at openjdk.java.net
Tue Mar 29 22:46:37 UTC 2022


On Fri, 11 Mar 2022 15:39:31 GMT, Srinivas Mandalika <smandalika at 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



More information about the client-libs-dev mailing list