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 253803 - Chained code completion shows result of local vars/fields with lower prio than getClass()/toString()
Summary: Chained code completion shows result of local vars/fields with lower prio tha...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 11:19 UTC by markiewb
Modified: 2015-07-31 01:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows issue (39.55 KB, image/png)
2015-07-26 11:19 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2015-07-26 11:19:15 UTC
Created attachment 154905 [details]
Shows issue

Noticed while testing http://services.netbeans.org/synergy/client/app/#/case/2442/suite/1893/edit

# Create class with following body:
String field;
public void test(String param) {
String variable;
if(|/*CC at |*/) {}
}
# Put cursor between empty braces (where is expected boolean)
# Press Ctrl-Space twice

ACTUAL: "items above the line" are sorted strangely
clone().equals()
field.xxx
field.yyy
getClass().xxx
getClass().yyy
param.xxx
param.yyy
toString().xxx
toString().yyy
variable.xxx
variable.yyy

EXPECTED: "items above the line" are sorted better
a) method results last - for example - OR
field.xxx
field.yyy
param.xxx
param.yyy
variable.xxx
variable.yyy
clone().equals()
getClass().xxx
getClass().yyy
toString().xxx
toString().yyy

b) method result last AND variable>param>field - for example
variable.xxx
variable.yyy
param.xxx
param.yyy
field.xxx
field.yyy
clone().equals()
getClass().xxx
getClass().yyy
toString().xxx
toString().yyy
Comment 1 Dusan Balek 2015-07-30 13:36:56 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/a9921457cf88
Comment 2 Quality Engineering 2015-07-31 01:51:00 UTC
Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a9921457cf88
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #253803 - Chained code completion shows result of local vars/fields with lower prio than getClass()/toString() - fixed.