diff -r ff9562f275ab -r caed182cee6e jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java --- a/jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java Mon Apr 28 09:59:35 2008 -0700 +++ b/jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java Mon Apr 28 11:06:18 2008 -0700 @@ -296,7 +296,7 @@ } public static void registerJREFontsForPrinting() { - String pathName = null; + final String pathName; synchronized (Win32GraphicsEnvironment.class) { GraphicsEnvironment.getLocalGraphicsEnvironment(); if (fontsForPrinting == null) { @@ -305,15 +305,21 @@ pathName = fontsForPrinting; fontsForPrinting = null; } - File f1 = new File(pathName); - String[] ls = f1.list(new TTFilter()); - if (ls == null) { - return; - } - for (int i=0; i