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 221830 - Code completion suggests a wrong type
Summary: Code completion suggests a wrong type
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 14:18 UTC by Michel Graciano
Modified: 2012-11-19 12:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample projet (13.57 KB, application/zip)
2012-11-09 14:21 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-11-09 14:18:52 UTC
[ BUILD # : beb7bf2aea3f ]
[ JDK VERSION : 1.7.9 ]

Code completion suggests a wrong type for == operations. I will attach a sample
to this.
Comment 1 Michel Graciano 2012-11-09 14:21:18 UTC
Created attachment 127477 [details]
Sample projet

Open the sample project and at nb.Main class, line 9 column 36 hit the CC and the suggested method is hashCode(), which is incorrect. the expected behaviour is that getConst() method should be suggested.
Comment 2 Svata Dedic 2012-11-12 10:18:38 UTC
Is it really a P2 ?
Comment 3 Dusan Balek 2012-11-12 12:18:04 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/735d8f2d1450
Comment 4 Quality Engineering 2012-11-15 02:42:18 UTC
Integrated into 'main-golden', will be available in build *201211150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/735d8f2d1450
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #221830: Code completion suggests a wrong type - fixed.
Comment 5 Michel Graciano 2012-11-19 12:56:10 UTC
v. Build 20121119-3b34dfd7e17e