-
Bug
-
Resolution: Fixed
-
P3
-
11
-
b04
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8211753 | 11.0.2 | Matthias Baesken | P3 | Resolved | Fixed | b01 |
The jdk jtreg test "javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java" tests some
swing related functionality .
For some of the tests it relies on a special font .
The test chooses a font "Arial" in the getFont() method, but in case such a font is not available it falls back to
fontNames[0] in the coding :
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontNames = ge.getAvailableFontFamilyNames();
This leads to failing tests because arbitrary fonts cannot be used in some of the subtests.
Suggested improvements :
- add warnings in case preferred font Arial is not found
- provide fallback font choices "Bitstream Charter" and "Dialog" in case Arial is not there;
those worked on our tests systems as well
errors we get in case Arial is not available :
java.lang.RuntimeException: String is not properly drawn!
java.lang.RuntimeException: Numeric shaper is not used!
(these issues have been observed on various Linux and AIX machines).
swing related functionality .
For some of the tests it relies on a special font .
The test chooses a font "Arial" in the getFont() method, but in case such a font is not available it falls back to
fontNames[0] in the coding :
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontNames = ge.getAvailableFontFamilyNames();
This leads to failing tests because arbitrary fonts cannot be used in some of the subtests.
Suggested improvements :
- add warnings in case preferred font Arial is not found
- provide fallback font choices "Bitstream Charter" and "Dialog" in case Arial is not there;
those worked on our tests systems as well
errors we get in case Arial is not available :
java.lang.RuntimeException: String is not properly drawn!
java.lang.RuntimeException: Numeric shaper is not used!
(these issues have been observed on various Linux and AIX machines).
- backported by
-
JDK-8211753 [TESTBUG] javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font
-
- Resolved
-
- duplicates
-
JDK-8196434 Regression automated Test 'javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java' fails
-
- Closed
-