-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8u281, 17
The test javax/swing/JRadioButton/8033699/bug8033699.java fails regularly when run in a group of tests:
jdk-dev> ./build/jdk-17/bin/java -jar ../jtreg/lib/jtreg.jar -nr -v -a -ignore:quiet -w:build/jtwork -r:build/jtreport open/test/jdk/java/awt/Focus/FocusTransitionTest/FocusTransitionTest.java open/test/jdk/java/awt/Focus/FocusTraversalPolicy/{DefaultFTPTest.java,InitialFTP.java,LayoutFTPTest.java} open/test/jdk/javax/swing/JRadioButton/8033699/bug8033699.java
...
runner starting test: javax/swing/JRadioButton/8033699/bug8033699.java
runner finished test: javax/swing/JRadioButton/8033699/bug8033699.java
Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
Test results: passed: 4; failed: 1
In this case, it seems the frame of the test is not activated because, after jtreg exists, I hear a bell and prompt in the console:
Display all ### possibilities? (y or n)
That is the Tab key press generated by the Robot in the test is sent to Cygwin Terminal rather than the test frame. It's the reason why the test fails.
When the test is run on its own or in another sequence of tests, it passes.
jdk-dev> ./build/jdk-17/bin/java -jar ../jtreg/lib/jtreg.jar -nr -v -a -ignore:quiet -w:build/jtwork -r:build/jtreport open/test/jdk/java/awt/Focus/FocusTransitionTest/FocusTransitionTest.java open/test/jdk/java/awt/Focus/FocusTraversalPolicy/{DefaultFTPTest.java,InitialFTP.java,LayoutFTPTest.java} open/test/jdk/javax/swing/JRadioButton/8033699/bug8033699.java
...
runner starting test: javax/swing/JRadioButton/8033699/bug8033699.java
runner finished test: javax/swing/JRadioButton/8033699/bug8033699.java
Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
Test results: passed: 4; failed: 1
In this case, it seems the frame of the test is not activated because, after jtreg exists, I hear a bell and prompt in the console:
Display all ### possibilities? (y or n)
That is the Tab key press generated by the Robot in the test is sent to Cygwin Terminal rather than the test frame. It's the reason why the test fails.
When the test is run on its own or in another sequence of tests, it passes.
- relates to
-
JDK-8266085 [TEST_BUG] Some tests in test/jdk/javax/swing/JRadioButton group fail
-
- Open
-
-
JDK-8033699 Incorrect radio button behavior
-
- Resolved
-
-
JDK-8265043 Focus is stuck in radio button group post JDK-8033699
-
- Resolved
-