Bug 65472 - [1.5] Can't subclass Writer
Summary: [1.5] Can't subclass Writer
Status: RESOLVED DUPLICATE of bug 52916
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 19:22 EDT by Paul Krause CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Krause CLA 2004-06-02 19:22:04 EDT
This is Cheetah05 + Eclipse 3.0M9 running on JDK 1.5 beta2.

Compiler complience level: 1.5
Source compatibility: 1.5
Class compatibility: 1.5
Unsafe type operation: Warning
Generic type parameter with final bound: Warning

Here is a test case that demonstrates the problem.
-----
public class TestWriter extends java.io.Writer {
    public void write(char[] cbuf, int off, int len) { }
    public void flush() {}
    public void close() {}
}
-----
The return type is incompatible with IAdapterFactory.getAdapterList()
	TestAdapterFactory.java	CheetahPluginTests/src	line 5	June 2, 2004 
6:24:54 PM
The return type is incompatible with Appendable.append(char), Writer.append
(char)	TestWriter.java	CheetahPluginTests/src	line 1	June 2, 2004 7:15:01 PM
The return type is incompatible with Appendable.append(CharSequence), 
Writer.append(CharSequence)	TestWriter.java	CheetahPluginTests/src	line 1
	June 2, 2004 7:15:01 PM
Comment 1 Frederic Fusier CLA 2004-06-03 03:30:21 EDT
Please, do no change Target on a bug, this is jdt-core team responsibility to
set it (same thing for Priority).
You're only supposed to set Severity, Thx
Comment 2 Kent Johnson CLA 2004-07-05 12:12:53 EDT

*** This bug has been marked as a duplicate of 52916 ***