changeset 39557:2503195ecd80

8160977: [PIT] Typo in SwingUtilities2.java Reviewed-by: ssadetsky, azvegint
author alexsch
date Fri, 08 Jul 2016 09:27:09 -0700
parents 50963eeaefca
children a632fc3f7c3a
files jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java jdk/test/javax/swing/JMenuItem/8158566/CloseOnMouseClickPropertyTest.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 {