This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]