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.
When searching for a keyword in an Enterprise Application Project the "Search Results" list shows duplicate entries for each file containing the keyword(same file, same line, same column)) Steps to reproduce: Edit -> Find in Projects -> Enter search term -> Hit Find Product Version = NetBeans IDE 6.9 (Build 201006101454) Operating System = Linux version 2.6.32-22-generic running on amd64 Java; VM; Vendor = 1.6.0_20 Runtime = Java HotSpot(TM) 64-Bit Server VM 16.3-b01
Created attachment 100474 [details] <no description>
Created attachment 101896 [details] File twice in search result (display detail of ".form" or ".java" file) Files done with GUI builder are showed twice in search result. Depending of the file : * the .java is displayed twice. * the .java is display twice but the result is from the .form (click on + button) By cons this is always the file .java that is open but with the line number .form in the last case.
I have forget to say that we use Netbeans 6.9.1 of Windows 7 with Java 1.6.0_21. I think this is a major issue, I move to P2 (I don't know if I can do this)
Causes of this bug are the following: Implementations of the NB projects, including Java Project implementation, have started to use of new API interface SearchInfo.Files (http://bits.netbeans.org/dev/javadoc/org-openidex-util/org/openidex/search/SearchInfo.Files.html) The interface SearchInfo.Files is based on FileObjects. Nevertheless, current implementation of the Search uses the DataObjects in many of parts. Using of the DataObjects is ambiguous and provokes incorrect result in the search window if specified FileObject is not a primary file in the DataObject. We can see such behavior in a case of GUI Java file when two files (i.e. java file and a form file) are associated to a single DataObject. Implementation of the Search should be revised to avoid ambiguous identification of the files.
Fixed in the main trunk http://hg.netbeans.org/main/rev/057787c55f52
*** Bug 184428 has been marked as a duplicate of this bug. ***
*** Bug 187010 has been marked as a duplicate of this bug. ***
*** Bug 187979 has been marked as a duplicate of this bug. ***
*** Bug 172664 has been marked as a duplicate of this bug. ***
*** Bug 186955 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201009150000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/057787c55f52 User: Victor G. Vasilyev <vvg@netbeans.org> Log: #188185 - "Find in Projects" returns duplicate results in the "Search Results" window. The FileObject is used instead of DataObject as the basic object in the Search implementation to be more applicable to the interface SearchInfo.Files, and to avoid of ambiguous search results.