[fedora-java] Problems building kawa on rawhide with ecj-on-gcj
Andrew Haley
aph at redhat.com
Mon Oct 15 14:20:32 UTC 2007
Anthony Green writes:
> I can't build kawa on rawhide (gcj 4.1.2) due to errors like the
> following....
>
> [javac] 1. ERROR in
> /home/BUILD/kawa-1.9.1/gnu/lists/PrintConsumer.java (at line 9)
> [javac] public class PrintConsumer extends PrintWriter
> [javac] ^^^^^^^^^^^^^
> [javac] Exception IOException in throws clause of
> Writer.append(CharSequence, int, int) is not compatible with
> PrintWriter.append(CharSequence, int, int)
>
> And, indeed, our PrintWriter.append methods don't throw IOException.
The PrintWriter.append methods in OpenJDK don't either.
PrintWriter.append(c) calls out.write(c), which catches IOException
and doesn't re-throw it.
> Is this a bug?
IMO no.
Andrew.
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903
More information about the fedora-devel-java-list
mailing list