This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12378] New: gcj claims concrete class to be abstract
- From: "brawer at dandelis dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2003 15:14:50 -0000
- Subject: [Bug java/12378] New: gcj claims concrete class to be abstract
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12378
Summary: gcj claims concrete class to be abstract
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: brawer at dandelis dot ch
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i386-pc-mingw32
gcj 3.4 20030902 refuses to compile the following code. Please note that it is
not a libjava problem; java.awt.font.FontRenderContext is (correctly) not abstract.
--------------- begin X.java
import java.awt.font.FontRenderContext;
public class X
{
public void foo()
{
new FontRenderContext(null, true, true);
}
}
--------------- end X.java
$ /opt/ywgcc/bin/mingw32-gcj X.java
X.java: In class `X':
X.java: In method `X.foo()':
X.java:7: error: Class `FontRenderContext' is an abstract class. It can't be
instantiated.
new FontRenderContext(null, true, true);
^
1 error
$ /opt/ywgcc/bin/mingw32-gcj --v
Reading specs from /opt/ywgcc/lib/gcc/mingw32/3.4/specs
Reading specs from
/opt/ywgcc/lib/gcc/mingw32/3.4/../../../../mingw32/lib/libgcj.spec
rename spec lib to liborig
Configured with: '../gcc/configure' '--prefix=/opt/ywgcc '--target=mingw32
'--host=i686-pc-linux-gnu '--build=i686-pc-linux-gnu
'--enable-languages=c,c++,java '--disable-nls '--disable-debug
'--enable-threads=win32 '--with-gcc '--with-gnu-as '--with-gnu-ld
'--without-newlib '--disable-win32-registry '--disable-shared '--enable-libgcj
'--disable-java-awt '--without-x '--enable-java-gc=boehm '--disable-libgcj-debug
'--enable-interpreter '--enable-hash-synchronization
Thread model: win32
gcc version 3.4 20030902 (experimental)