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 48859 - methods with generics do not get overridden symbol
Summary: methods with generics do not get overridden symbol
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on: 55511
Blocks:
  Show dependency tree
 
Reported: 2004-09-10 16:25 UTC by athompson
Modified: 2012-07-30 20:47 UTC (History)
1 user (show)

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 athompson 2004-09-10 16:25:18 UTC
1. add this code:

public interface I {
  public <T> T getObject(Class<T> c);
}

2! add this code:

public class C {
  public <T> T getObject(Class<T> c) {
    ...
  }
}

the method in class 'C' does not get the
overridden symbol.
Comment 1 athompson 2004-09-10 18:23:14 UTC
whoops! that secnond code snippet should be:

public class C
implements I {
  public <T> T getObject(Class<T> c) {
    ...
  }
}
Comment 2 Daniel Prusa 2004-09-13 08:46:44 UTC

*** This issue has been marked as a duplicate of 48469 ***
Comment 3 athompson 2004-09-13 12:38:47 UTC
this bug may be caused by the same code but clearly not a duplicate...
Comment 4 Daniel Prusa 2004-09-13 12:50:57 UTC
This is not a duplicate. I have marked it by mistake. Sorry ...
Comment 5 ehucka 2005-01-11 13:21:31 UTC
old target milestone, please re-evaluate
Comment 6 Jan Pokorsky 2005-02-24 15:16:30 UTC
I'll take a look at this.
Comment 7 Martin Matula 2005-02-24 22:16:02 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.18; previous revision: 1.17
done
Comment 8 Jan Pokorsky 2005-02-25 11:45:21 UTC
Arrays still not working. Try

class A {
  <T> T[] getVal(T[] p1) {return null;}
}
class B extends A {
  <E> E[] getVal(E[] p1) {return null;}
}
Comment 9 Martin Matula 2005-02-28 16:27:05 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.19; previous revision: 1.18
done