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 254734 - CC does not recognize the Exclude list
Summary: CC does not recognize the Exclude list
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 19:09 UTC by stwr
Modified: 2015-08-28 01:24 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 stwr 2015-08-25 19:09:45 UTC
Product Version: NetBeans IDE Dev (Build 201508250002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

--Use Case--

1. Open OD|Editor|CC|All Languages and uncheck the 'Insert Single Proposals Automatically'
2. Switch to OD|Editor|CC|Java
3. Add 'java.lang.System.gc' to the Exclude list
4. Check the 'Apply rules to methods'
5. Create new java class with some test method
6. Type inside the method body 'gc' and call CC

--Expected Result--
No suggestions or a list of items but without 'System.gc()' in it.

--Actual Result--
CC offers one entry which is 'System.gc() void'.
If the 'Insert Single Proposals Automatically' is checked the text 'gc' is automatically replaced with the System.gc() method call.

Since the gc() method is unwanted the CC should not offer it at all!

Moreover the CC behaves correctly and does not offer 'System.gc() void' for following input 'System.'.
Comment 1 Dusan Balek 2015-08-26 14:41:21 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/82108c66cbfe
Comment 2 Quality Engineering 2015-08-28 01:24:02 UTC
Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/82108c66cbfe
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #254734 - CC does not recognize the Exclude list - fixed.