Bug 65472

Summary: [1.5] Can't subclass Writer
Product: [Eclipse Project] JDT Reporter: Paul Krause <paulkrause88>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***