backported the fix for JDK-8130430
diff --git a/test/javax/swing/JRadioButton/8075609/bug8075609.java b/test/javax/swing/JRadioButton/8075609/bug8075609.java
index 9bffc80..6cd1721 100644
--- a/test/javax/swing/JRadioButton/8075609/bug8075609.java
+++ b/test/javax/swing/JRadioButton/8075609/bug8075609.java
@@ -35,11 +35,9 @@
import javax.swing.event.*;
import java.awt.event.*;
import java.awt.*;
-import sun.awt.SunToolkit;
public class bug8075609 {
private static Robot robot;
- private static SunToolkit toolkit;
private static JTextField textField;
public static void main(String args[]) throws Throwable {
@@ -53,7 +51,6 @@
Thread.sleep(100);
robot.setAutoDelay(100);
- toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
// Radio button group tab key test
runTest1();
@@ -96,10 +93,10 @@
private static void runTest1() throws Exception{
hitKey(robot, KeyEvent.VK_TAB);
- robot.setAutoDelay(1000 );
+ robot.delay(1000 );
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
- if (textField.hasFocus()) {
+ if (!textField.hasFocus()) {
System.out.println("Radio Button Group Go To Next Component through Tab Key failed");
throw new RuntimeException("Focus is not on textField as Expected");
}
@@ -110,6 +107,6 @@
private static void hitKey(Robot robot, int keycode) {
robot.keyPress(keycode);
robot.keyRelease(keycode);
- toolkit.realSync();
+ robot.waitForIdle();
}
}
diff --git a/test/jbProblemsList.txt b/test/jbProblemsList.txt
index 0881f83..5dd6c0d 100644
--- a/test/jbProblemsList.txt
+++ b/test/jbProblemsList.txt
@@ -1059,8 +1059,9 @@
# https://bugs.openjdk.java.net/browse/JDK-8064920
javax/swing/JRadioButton/8033699/bug8033699.java generic-all
-# https://bugs.openjdk.java.net/browse/JDK-8130430
-javax/swing/JRadioButton/8075609/bug8075609.java generic-all
+## https://bugs.openjdk.java.net/browse/JDK-8130430
+# fix was backported
+#javax/swing/JRadioButton/8075609/bug8075609.java generic-all
# https://bugs.openjdk.java.net/browse/JDK-8042381
javax/swing/JRootPane/4670486/bug4670486.java generic-all