bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/41116] New: Font.getName() method throwing NullPointerException


From: dhaval dot yoganandi at elitecore dot com
Subject: [Bug awt/41116] New: Font.getName() method throwing NullPointerException
Date: 19 Aug 2009 09:34:29 -0000

I'm facing some problem using jfree chart with GNU classpath 0.98 and
JamVM. I'm using a redhat based linux which is only console based linux
and doesn't support desktop and graphics. while running following demo
in my machine with JamVM I get NullPointerException but it is working
fine with JDK 1.5 with update 14. While generating chart with jfree
chart it is also giving the same error.

My system has Fedora Core 6 installed with JamVm 1.5.3 compiled with gnu
classpath 0.98 with gtk peer enabled. 


import java.awt.Font;
public class FontDemo{
      public static void main(String args[]){
              Font f = new Font("SansSerif", Font.BOLD, 18);
              System.out.println(f.getName());
      }
}

OUTPUT:
/bin/jamvm/bin/jamvm -cp . FontDemo      Exception in thread "main"
java.lang.NullPointerException
 at java.awt.Font.getName(Font.java:427)
 at FontDemo.main(FontDemo.java:5) 

In case of any doubt or query please contact me.


-- 
           Summary: Font.getName() method throwing NullPointerException
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhaval dot yoganandi at elitecore dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41116





reply via email to

[Prev in Thread] Current Thread [Next in Thread]