This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/11239] New: java.awt.datatransfer.DataFlavor.isMimeTypeEqual final, so Java Activation Framework doesn't compile
- From: "rick at knowleses dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2003 14:41:16 -0000
- Subject: [Bug libgcj/11239] New: java.awt.datatransfer.DataFlavor.isMimeTypeEqual final, so Java Activation Framework doesn't compile
- 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=11239
Summary: java.awt.datatransfer.DataFlavor.isMimeTypeEqual final,
so Java Activation Framework doesn't compile
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rick@knowleses.org
CC: gcc-bugs@gcc.gnu.org
When trying to compile the Java Activation Framework and JavaMail using GCJ to
an object file, the error message below is displayed. I checked the class
referenced in the include/java folder, but there was nothing I could see to
suggest final behaviour on the header file.
I've tried this with a copy of GCJ built from CVS, and the same message is
returned.
[rickk@gw tomcat]$ make mail.o
gcj -O2 -march=athlon --classpath=./mail -o mail.o -
c ./mail/javax/mail/*.java ./mail/javax/mail/*/*.java ./mail/javax/activation/*.
java ./mail/com/*/*/*/*.java ./mail/com/*/*/*/*/*.java
./mail/javax/activation/ActivationDataFlavor.java:180: error: Final methods
can't be overriden. Method `java.awt.datatransfer.DataFlavor.isMimeTypeEqual
(java.lang.String)' is final in class `java.awt.datatransfer.DataFlavor'.
public boolean isMimeTypeEqual(String mimeType) {
^
1 error
make: *** [mail.o] Error 1
GCC Compile info:
Configured with: ../gcc-3.3/configure --prefix=/usr/local/gcc-33 --enable-
shared --enable-languages=c,c++,objc,java --enable-threads=posix --enable-
__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3
System is: Linux 2.4.21, 2xAthlonMP CPU, GLibc 2.3.2.
I've tried this with both the source code and the compiled activation.jar
supplied with Tomcat, and both give the same results. I'm not sure whether
this is an environment error or something in libgcj, but in any case, I'd like
to fix it.
Looking forward to your response. By the way ... what is a
host/target/build "triplet" ?