This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Java Writer cannot call append()
- From: "Rui Wang" <Rui dot Wang at newcastle dot ac dot uk>
- To: <java at gcc dot gnu dot org>
- Date: Thu, 9 Feb 2006 13:05:43 -0000
- Subject: Java Writer cannot call append()
Hi,
I did a test on GCJ4.2.0 on file output on Fedro code 3.
The following lines of java code are the code I am testing:
Writer output = new BufferedWriter(new FileWriter("out.d"));
output.append("random output");
output.newLine();
if I use gcj to compile the code, the following error will be found:
Client.java:51: error: Can't find method âappend(Ljava/lang/String;)â in type âjava.io.Writerâ.
output.append("random output");
^
Client.java:52: error: Can't find method ânewLine()â in type âjava.io.Writerâ.
output.newLine();
Any ideas why?
Thanks
Rui