harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r549547 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java
Date Thu, 21 Jun 2007 17:03:32 GMT
Author: apetrenko
Date: Thu Jun 21 10:03:30 2007
New Revision: 549547

URL: http://svn.apache.org/viewvc?view=rev&rev=549547
Log:
Patch for HARMONY-4217 "[classlib][awt] ExceptionInInitializerError is thrown if call certain
method like getFontName() on a Font object"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java?view=diff&rev=549547&r1=549546&r2=549547
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontManager.java
Thu Jun 21 10:03:30 2007
@@ -39,6 +39,10 @@
 
 
 public abstract class FontManager {
+
+    static {
+        java.awt.Toolkit.getDefaultToolkit();
+    }
     
     public static final boolean IS_FONTLIB = "true".equals(System.getProperty("java.awt.fontlib"))
|| 
         GraphicsEnvironment.isHeadless();



Mime
View raw message