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 193668 - Wrong hint
Summary: Wrong hint
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-21 01:36 UTC by Chiana
Modified: 2011-01-13 01:00 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 Chiana 2010-12-21 01:36:43 UTC
[ BUILD # : 20101215 ]
[ JDK VERSION : 1.6.22 ]

In the following;
@Override
  public int count(String... searchFilterString) {
    return super.count0(filterList(searchFilterString));
  }

  @Override
  public List allKeys(String... searchFilterString) {
    return super.allKeys0(filterList(searchFilterString));
  }

The filterList method do not (yet) exist, it gives "Symbol not found" on the
pop-up description but the hint contains "Cast..allKeys0(,,, to List..." wich
is wrong, it should have been "Create method searchFilter...". And, one more
thing, if you use the hint "Cast..." it will change to "Remove redundant
cast".
Comment 1 Jan Lahoda 2010-12-21 19:40:51 UTC
I have disabled the hint when not appropriate:
http://hg.netbeans.org/jet-main/rev/22efc0a0c3e0
http://hg.netbeans.org/jet-main/rev/d1841a8b9e32
Comment 2 Quality Engineering 2010-12-23 07:08:56 UTC
Integrated into 'main-golden', will be available in build *201012230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/22efc0a0c3e0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #193668: disabling inappropriate Add Cast hint.