RFR (XS): 8258430: 8u backport of JDK-8063107 missing test/javax/swing/JRadioButton/8041561/bug8041561.java changes
Hohensee, Paul
hohensee at amazon.com
Tue Dec 15 23:31:22 UTC 2020
Please review this makeup backport.
JBS: https://bugs.openjdk.java.net/browse/JDK-8258430
Webrev: http://cr.openjdk.java.net/~phh/8258430/webrev.8u.01/
JDK-8063107 patch: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/4ef86895869c
Applicable portion of original patch:
--- a/test/javax/swing/JRadioButton/8041561/bug8041561.java Wed Nov 19 16:42:19 2014 +0400
+++ b/test/javax/swing/JRadioButton/8041561/bug8041561.java Fri Nov 21 16:11:03 2014 +0300
@@ -25,7 +25,6 @@
import java.awt.Color;
import java.awt.Point;
import java.awt.Robot;
-import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
@@ -34,7 +33,6 @@
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.metal.DefaultMetalTheme;
import javax.swing.plaf.metal.MetalLookAndFeel;
-import sun.awt.SunToolkit;
/**
* @test
@@ -62,7 +60,7 @@
}
});
- ((SunToolkit) Toolkit.getDefaultToolkit()).realSync();
+ new Robot().waitForIdle();
Thread.sleep(500);
SwingUtilities.invokeAndWait(new Runnable() {
Thanks,
Paul
More information about the jdk8u-dev
mailing list