[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #20143] some GCJs can't compile gnu/lists/PrintConsumer.
From: |
Stephen Compall |
Subject: |
[Bug-kawa] [bug #20143] some GCJs can't compile gnu/lists/PrintConsumer.java:74 |
Date: |
Mon, 11 Jun 2007 02:11:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070208 Mandriva/2.0.0.3-2mdv2007.1 (2007.1) Firefox/2.0.0.3 |
URL:
<http://savannah.gnu.org/bugs/?20143>
Summary: some GCJs can't compile
gnu/lists/PrintConsumer.java:74
Project: Kawa
Submitted by: S11001001
Submitted on: Sunday 06/10/2007 at 21:11
Category: None
Severity: 3 - Normal
Item Group: Problem building Kawa
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I tried building from SVN trunk r5973 with gcj (GCC) 4.1.2 20070302
(prerelease) (4.1.2-1mdv2007.1), which is the current official/update release
on Mandriva 2007. It has trouble with e.g. choosing the correct `execute'
method to call in my example file, attached to this report.
This causes r5973 to break like:
./configure --with-gcj && make
...
CLASSPATH=../..:./../..:$CLASSPATH gcj -C -d ../.. -g AbstractFormat.java
AbstractSequence.java ...
PrintConsumer.java: In class 'gnu.lists.PrintConsumer':
PrintConsumer.java: In method
'gnu.lists.PrintConsumer.write(java.lang.CharSequence,int,int)':
PrintConsumer.java:74: error: Can't find method
‘write(Ljava/lang/String;II)’ in type ‘gnu.lists.PrintConsumer’.
Candidates are:
'gnu.lists.PrintConsumer.write(java.lang.CharSequence,int,int)' in
'gnu.lists.PrintConsumer'
'java.io.PrintWriter.write(java.lang.String,int,int)' in
'java.io.PrintWriter'.
write((String) csq, start, end);
I worked around it here by putting super.write instead.
I asked in irc.oftc.net/#gcj and at least gcj (GCC) 4.1.3 20070518
(prerelease) (Debian 4.1.2-8) supports the construct correctly, so there may
be too small a subset of compilers to justify changing it in SVN.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 06/10/2007 at 21:11 Name: MoreSpecificSuperApplies.java Size:
476B By: S11001001
a smaller test case for GCJ
<http://savannah.gnu.org/bugs/download.php?file_id=13006>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20143>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #20143] some GCJs can't compile gnu/lists/PrintConsumer.java:74,
Stephen Compall <=