This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj and XGraphicsConfiguration bugs
- From: Anthony Green <green at redhat dot com>
- To: java at gcc dot gnu dot org, scottg at mantatest dot com
- Date: 19 Jul 2003 18:30:36 -0700
- Subject: gcj and XGraphicsConfiguration bugs
- Organization: Red Hat, Inc.
ecj emits the following error when compiling XGraphicsConfiguration....
----------
1. ERROR in ../../../gcc/libjava/gnu/awt/xlib/XGraphicsConfiguration.java (at line 46)
static FontMetricsCache fontMetricsCache = new FontMetricsCache ();
^^^^^^^^^^^^^^^^^^^^^^^
No enclosing instance of type XGraphicsConfiguration is accessible. Must qualify the allocation with an enclosing instance of type XGraphicsConfiguration (e.g. x.new A() where x is an instance of XGraphicsConfiguration).
----------
make: *** [gnu/awt/xlib/XGraphicsConfiguration.class] Error 255
This looks like a reasonable error. FontMetricsCache is an inner
class and I suppose you shouldn't be able to allocate one like
this.
The work-around I used for building libgcj with ecj was
to replace "new FontMetricsCache ()" with "null". Obviously we need a
proper fix (to both libgcj and gcj).
I don't know this code well enough to suggest a solution.
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.