Bug 138790 - Nonsense compile error subclassing java.io.StringWriter
Summary: Nonsense compile error subclassing java.io.StringWriter
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-04-26 19:14 EDT by Keith McQueen CLA
Modified: 2009-08-30 02:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith McQueen CLA 2006-04-26 19:14:02 EDT
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.
Comment 1 Olivier Thomann CLA 2006-04-26 19:26:45 EDT
What are your compiler settings? (compliance, target, source)
What JDK are you using? 1.4 or 1.5?
Comment 2 Philipe Mulet CLA 2006-04-27 05:08:39 EDT
Pls provide a testcase.
Comment 3 Philipe Mulet CLA 2006-04-27 05:32:06 EDT
Maxime - pls try to reproduce in latest.
Comment 4 Maxime Daniel CLA 2006-04-27 06:42:33 EDT
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).
Comment 5 Keith McQueen CLA 2006-04-27 10:18:47 EDT
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.
Comment 6 Maxime Daniel CLA 2006-04-27 11:01:23 EDT
You're welcome.
Comment 7 Denis Roy CLA 2009-08-30 02:05:31 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.