8160977: [PIT] Typo in SwingUtilities2.java
authoralexsch
Fri, 08 Jul 2016 09:27:09 -0700
changeset 39557 2503195ecd80
parent 39556 50963eeaefca
child 39558 a632fc3f7c3a
8160977: [PIT] Typo in SwingUtilities2.java Reviewed-by: ssadetsky, azvegint
jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java
jdk/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java
--- a/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java	Tue Jul 05 12:37:36 2016 +0300
+++ b/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java	Fri Jul 08 09:27:09 2016 -0700
@@ -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	Tue Jul 05 12:37:36 2016 +0300
+++ b/jdk/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java	Fri Jul 08 09:27:09 2016 -0700
@@ -37,7 +37,7 @@
 
 /*
  * @test
- * @bug 8158566
+ * @bug 8158566 8160879 8160977
  * @summary Provide a Swing property which modifies MenuItemUI behaviour
  */
 public class CloseOnMouseClickPropertyTest {