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 258277 - "Add import" hint does not respect excluded classes from code completion settings
Summary: "Add import" hint does not respect excluded classes from code completion sett...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 23:10 UTC by markiewb
Modified: 2016-04-30 01:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (54.67 KB, image/png)
2016-03-07 23:10 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-03-07 23:10:20 UTC
Created attachment 158776 [details]
Shows the issue

Steps:
* add same excludes for code completion

ACTUAL
* excluded classes/methods are not proposed in CC
* excluded classes/methods are proposed in "Add Import" hint suggestions

EXPECTED
* excluded classes/methods are not proposed in CC (as before)
* excluded classes/methods are not proposed in "Add Import" hint suggestions (Why should I like to import a class/method, which I cannot access manually by CC?) 

See screenshot
Comment 1 Svata Dedic 2016-03-29 06:21:05 UTC
I don't think it qualifies as P2; but CC and import hint suggestion should be probably consistent.
Comment 2 markiewb 2016-03-29 21:49:44 UTC
(In reply to Svata Dedic from comment #1)
> I don't think it qualifies as P2; but CC and import hint suggestion should
> be probably consistent.

@Svata: Yes, you are right. P2 was to harsh.
Comment 3 Svata Dedic 2016-04-27 14:17:43 UTC
Fixed in jet-main#2c13342aa6b7
Comment 4 Quality Engineering 2016-04-30 01:59:11 UTC
Integrated into 'main-silver', will be available in build *201604300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2c13342aa6b7
User: Svata Dedic <sdedic@netbeans.org>
Log: #258277: do not offer imports excluded from CC