8160879: [PIT] CloseOnMouseClickPropertyTest fails with AA hint:Nonantialiased rendering mode exception
Reviewed-by: ssadetsky, azvegint
--- a/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java Thu Jul 07 16:47:37 2016 +0530
+++ b/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java Thu Jul 07 15:39:19 2016 +0300
@@ -1093,7 +1093,7 @@
FontRenderContext frc = cache.get(key);
if (frc == null) {
- aaHint = (aaHint == null) ? VALUE_ANTIALIAS_OFF : aaHint;
+ aaHint = (aaHint == null) ? VALUE_TEXT_ANTIALIAS_OFF : aaHint;
frc = new FontRenderContext(tx, aaHint,
VALUE_FRACTIONALMETRICS_DEFAULT);
cache.put(key, frc);
--- a/jdk/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java Thu Jul 07 16:47:37 2016 +0530
+++ b/jdk/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java Thu Jul 07 15:39:19 2016 +0300
@@ -37,7 +37,7 @@
/*
* @test
- * @bug 8158566
+ * @bug 8158566 8160879
* @summary Provide a Swing property which modifies MenuItemUI behaviour
*/
public class CloseOnMouseClickPropertyTest {