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

Summary: Missing support of covariant return types
Product: java Reporter: Jan Pokorsky <jpokorsky>
Component: UnsupportedAssignee: Martin Matula <mmatula>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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