Community
Participate
Working Groups
I get a java compilation error that makes no sense whatsoever. I have a class (FileStringWriter) that subclasses java.io.StringWriter. It fails to compile saying that "The return type is incompatible with Writer.append(char), StringWriter.append(char)." My colleague has no trouble compiling the class. I will attach the .java file to this bug. Please help. Thanks a lot.
What are your compiler settings? (compliance, target, source) What JDK are you using? 1.4 or 1.5?
Pls provide a testcase.
Maxime - pls try to reproduce in latest.
Could not reproduce with latest. Please produce source file or test case and the elements asked for in comment #1 (JDK must be 1.5, since StringWriter#append(char) came with it).
You're right. It turned out to be a compliance issue. However, it was still a pain in the neck to figure that out. Once again, better errors would be nicer. Maybe there really isn't any way to handle that any better, and its just up to the "experienced" programmer to know where to look. I did mean to attach the file. I don't know what happened. I must've gotten distracted by something. Thanks for the help.
You're welcome.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.