Hello,  the test   
javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java
does not work on some of our  Linux and AIX machines .

Reason is that the test  in case of absence of font "Arial"  on the system ,   
chooses  just the first font  from  the  AvailableFontFamilyNames  .
280     private static Font getFont() {
281         GraphicsEnvironment ge = 
GraphicsEnvironment.getLocalGraphicsEnvironment();
282         String[] fontNames = ge.getAvailableFontFamilyNames();
283         String fontName = fontNames[0];

284         for (String name : fontNames) {

285             if ("Arial".equals(name)) {

286                 fontName = name;

287                 break;

288             }

289         }

290         return new Font(fontName, Font.PLAIN, 30);

291     }

292


However  this first  font might not be a good choice  that works  with the  
tests  in   bug8132119.java  .
So  we better  provide  some  reasonable  fallbacks  that  were  available and  
working on   our  test systems .


Please review this adjustment :

http://cr.openjdk.java.net/~mbaesken/webrevs/8207941.0/

https://bugs.openjdk.java.net/browse/JDK-8207941


Thanks, Matthias



Reply via email to