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 269574 - Go To Type lists classes that art not part of current Project Group
Summary: Go To Type lists classes that art not part of current Project Group
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 14:37 UTC by mclaborn
Modified: 2017-01-16 15:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (229.52 KB, text/plain)
2017-01-16 14:37 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2017-01-16 14:37:28 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-59-generic running on amd64
Java; VM; Vendor = 1.8.0_112
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.112-b15

Reproducibility: Happens every time


I recently did a code fork, and am now working on two almost identical sets of code for different clients. I am using Net Beans Project Groups to separate the two sets of code.  When I do a Navigate -> Go to Type (ctrl + o) and type in the name of a class that exists in both sets of code, the dialog lists both of them, even though one of them resides in a project that is not open in the current Project Group.

I believe that only that class that exists in a project that is part of the current Project Group should be listed.
Comment 1 mclaborn 2017-01-16 14:37:31 UTC
Created attachment 163405 [details]
IDE log
Comment 2 _ wadechandler 2017-01-16 15:04:17 UTC
Mitch, do the projects have the same packages and class names internally? Also, can you give a rough example of the layout of the projects, plus where the class which is opened this way resides?
Comment 3 mclaborn 2017-01-16 15:23:43 UTC
The projects in question do have exactly the same package and class names, but reside in different NetBeans projects. 

One example is my class com.csc.mm.MailUtil. It resides in NB projects MMCommon and HMCommon. 

MMCommon project is only a part of the MM project group. 
HMCommon project is only a part of the HM project group. 

When I invoke Go To Type, the class is listed twice, once for each project, even though only one of them is in the Project Group that is currently active.