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 268667 - False positive for hint "Import from excluded"
Summary: False positive for hint "Import from excluded"
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: PC All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-24 20:01 UTC by ecerichter
Modified: 2016-11-04 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Image of the problem (8.26 KB, image/png)
2016-10-24 20:01 UTC, ecerichter
Details
Messages log (198.75 KB, application/octet-stream)
2016-10-24 20:03 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2016-10-24 20:01:56 UTC
Created attachment 162614 [details]
Image of the problem

After upgrade from NB 8.1 to 8.2 (and yes, after deleting cache/indexes, etc), I'm getting random "Import from excluded" - and I'm pretty sure the most used class in my app is still there.
I've already checked the build/web/WEB-INF/classes, and it is there, as well the source code is also available.

See the screen shot for your reference.

Thanks,

Edson Richter
Comment 1 ecerichter 2016-10-24 20:03:02 UTC
Created attachment 162615 [details]
Messages log
Comment 2 Svata Dedic 2016-11-04 10:04:51 UTC
Not enough info.

BTW The warning does not say the class does not exist, but rather that it is excluded from imports - the package, or class, is explicitly listed in Tools | Options - Java/Code Completion - Packages/Classes as excluded

The warning is meant as just a consistency check; class which is banned from completion should not be (usually) used at all in the project.

Check that the warning really appears *randomly* - what what the randomness is:
* in a specific file, the warning always appears: for the same identifier(s) / each time for different identifiers. Does not appear in *all* files where the identifier is imported.
* for the same identifier(s), but sometimes the warning appears in the file and sometimes not.
...
Check yout tools/options settings.

when you collect some info on the randomness (so I can test/reproduce the behaviour), please export and attach your Tools | Options settings for editor and java.