History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19718
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Sebastian Graca
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Good code red - generic method of an interface implemented with raw return type in superclass

Created: 22 Sep 08 14:05   Updated: 22 Sep 08 14:07
Component/s: Editor. Error Highlighting

Build: 8,792


 Description  « Hide
The line "static class Impl2 extends Impl1 implements Int1" is highlighted as incorrect "Class Impl2 must either be declared abstract or implement abstract method getSupportedHints() in test.GoodCodeRed.Int1"

package test;
import java.awt.RenderingHints;
import java.util.Set;

public class GoodCodeRed
{
static interface Int1

{ public Set<RenderingHints.Key> getSupportedHints(); }

static class Impl1 implements Int1
{
public Set getSupportedHints()

{ return null; }

}

static class Impl2 extends Impl1 implements Int1
{

}
}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.