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 254983 - Autocomplete suggesting invalid class names
Summary: Autocomplete suggesting invalid class names
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-09-03 18:29 UTC by mclaborn
Modified: 2015-09-04 16:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (687.63 KB, text/plain)
2015-09-03 18:29 UTC, mclaborn
screen shot of problem (151.18 KB, image/png)
2015-09-03 18:29 UTC, mclaborn

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2015-09-03 18:29:10 UTC
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349)
Operating System = Linux version 3.13.0-63-generic running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03

See screen shot coming shortly.  I've invoked auto complete (Ctrl + Space) for the instance variable connInfo which is of type DBConnectionInfo, a class that is defined in my project. NetBeans suggests all these other classes that could not possibly be a match for the connInfo variable.  Autocomplete should only suggest class names (types) that actually make sense in the given context.
Comment 1 mclaborn 2015-09-03 18:29:17 UTC
Created attachment 155875 [details]
IDE log
Comment 2 mclaborn 2015-09-03 18:29:52 UTC
Created attachment 155876 [details]
screen shot of problem
Comment 3 Jiri Kovalsky 2015-09-04 10:22:28 UTC
Reassigning for further evaluation. BTW, by context you mean "connInfo" substring in DBConnectionInfo class name?
Comment 4 Dusan Balek 2015-09-04 15:48:48 UTC
Unfortunately, I cannot reproduce the problem. I've tried to prepare a simple test case corresponding to your screenshot and code completion correctly shows DBConnectionInfo at the top of the list separated from the rest of the items. Could you please create a simple test project demonstrating the problem and attach it to the issue? Thanks
Comment 5 mclaborn 2015-09-04 16:14:09 UTC
I am unable to create a simple test case that reproduces the problem.  It is 100% reproducible in the project of which I sent the screen shot.

1) Is there some logging or debugging that could be turned on that might help pinpoint the problem?

2) If you wanted to create a temporary / test build with some logging in it, I could test with that.

3) I could provide this entire project and the supporting projects, but it would have to be done privately (not in the ticket) with some assurance that the code would remain private and secured.