This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52023 - Missing support of covariant return types
Summary: Missing support of covariant return types
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 16:33 UTC by Jan Pokorsky
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2004-12-02 16:33:17 UTC
Overide&implement editor annotations ignore
methods with covariant return types.
Comment 1 Martin Matula 2005-01-10 16:59:31 UTC
Could you provide a concrete example (steps to reproduce)?
Comment 2 Jan Pokorsky 2005-01-10 17:28:23 UTC
class A {}
class B extends A {}

abstract class Sup {
  A someMethod();
}

class Sub extends Sup {
  B someMethod();
}

Sub.someMethod() should be annotated as 'Implements'.
Comment 3 Martin Matula 2005-01-13 12:31:33 UTC
Fixed.

Checking in src/org/netbeans/modules/java/OverrideAnnotationSupport.java;
/cvs/java/src/org/netbeans/modules/java/OverrideAnnotationSupport.java,v
 <--  OverrideAnnotationSupport.java
new revision: 1.16; previous revision: 1.15
done