Re: Problems building kawa on rawhide with ecj-on-gcj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux