7120895: FontConfiguration should not use thread contextClassLoader
authorbae
Thu, 31 May 2012 12:15:22 +0400
changeset 12811 859419a97d2b
parent 12810 d9307058c48b
child 12812 5119c8da8a8d
7120895: FontConfiguration should not use thread contextClassLoader Reviewed-by: igor, prr
jdk/src/share/classes/sun/awt/FontConfiguration.java
--- a/jdk/src/share/classes/sun/awt/FontConfiguration.java	Wed May 30 16:17:48 2012 +0100
+++ b/jdk/src/share/classes/sun/awt/FontConfiguration.java	Thu May 31 12:15:22 2012 +0400
@@ -947,7 +947,7 @@
                     public Object run() {
                         try {
                             return Class.forName(charsetName, true,
-                                                 Thread.currentThread().getContextClassLoader());
+                                                 ClassLoader.getSystemClassLoader());
                         } catch (ClassNotFoundException e) {
                         }
                         return null;