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

Summary: Code completion suggests a wrong type
Product: java Reporter: Michel Graciano <hmichel>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: normal CC: misterm, sdedic
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample projet

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