8160879: [PIT] CloseOnMouseClickPropertyTest fails with AA hint:Nonantialiased rendering mode exception

Reviewed-by: ssadetsky, azvegint
This commit is contained in:
Alexander Scherbatiy 2016-07-07 15:39:19 +03:00
parent 0d7becfcb7
commit 16aa730d25
2 changed files with 2 additions and 2 deletions

View File

@ -1093,7 +1093,7 @@ public class SwingUtilities2 {
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);

View File

@ -37,7 +37,7 @@ import javax.swing.UIManager;
/*
* @test
* @bug 8158566
* @bug 8158566 8160879
* @summary Provide a Swing property which modifies MenuItemUI behaviour
*/
public class CloseOnMouseClickPropertyTest {