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 59093 - inheritance indicator has been made name specific
Summary: inheritance indicator has been made name specific
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 09:25 UTC by loki
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 loki 2005-05-20 09:25:25 UTC
If I create a java class that implements an interface the only methods that
properly show the 'inheritance marker' in the left side of the editor window are
those whose parameter names coincide with the names in the interface. This is wrong.

e.g. in this example the 'inheritance indicator', if that is the name, is shown
correctly in the second class were the parameter name coincides with the
interface's name but it does not work in the first instance were 'newValue' is
repalced with 'name'.

cheers,
Aad
 
interface Widget
  public String getName();
  public void setName(String newValue);
}

class WidgetImpA implements Widget {
  String name;

  public String getName(){
     return this.name;
  }
 
  public void setName(String name){
    this.name = name;
  }

}

class WidgetImpB implements Widget {
  String name;

  public String getName(){
     return this.name;
  }
 
  public void setName(String newValue){
    this.name = name;
  }

}

}
Comment 1 loki 2005-05-20 09:37:33 UTC
It get's even funnier. After having changed all of the parameter names to
reflect the names in interface, no change. Netbeans reports only the interface
methods that had a correct parameter name under 'find usages'.
Comment 2 Pavel Flaska 2005-08-25 14:17:45 UTC
I wasn't able to reproduce it. All the 'inheritance markers' were correct. Are
you  able to reproduce it in current builds? Closing, reopen, if it still does
not work for you.