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 11557 - "Find..." service locates wrong files if criterion matches more objects.
Summary: "Find..." service locates wrong files if criterion matches more objects.
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
: 12047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-19 11:05 UTC by Jiri Kovalsky
Modified: 2003-07-01 15:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2001-04-19 11:05:29 UTC
NetBeans release 3.2 build #32 (RC2) on Windows 2000 with JDK 1.3

Description:
============
As stated in the summary "Find..." service invoked on the root of filesystem 
finds appropriate object but shows wrong one in the result window in some cases.
This happens if specified search criterion matches object that have the same re-
lative position from the root of its filesystem and this has to be mounted befo-
re desired one. This behaviour is pretty annoying because to work around user 
has to change the order of affected filesystem to be the first one.

Steps to reproduce:
===================
1. Create two empty directories e.g. C:\Tests\Work1 and C:\Tests\Work2
2. Mount this directories into explorer in correct order.
3. Create from template class MyClass in the first filesystem and copy this file
   also into the second filesystem so that they are identical.
4. Now invoke "Find..." item from the popup menu of the second filesystem.
5. In "Full Text" tab type '* MyClass.java' string into "Substring" textfield
   and press ENTER key to start searching.
6. MyClass class object will be found but if you click on it to see its location
   it will show you C:\Tests\Work1 in the right pane of results window.
Comment 1 Peter Zavadsky 2001-04-26 16:42:13 UTC
Fixed in [main-trunk. Next build available.

Changed files:

	org.netbeans.modules.search.scanners.RepositoryScanner.java[1.16]
	org.netbeans.modules.search.ResultModel.java[1.19]
Comment 2 Jan Chalupa 2001-05-06 15:23:32 UTC
Target milestone -> 3.3
Removing the OPEN_IN_3.2 keyword.
Comment 3 Peter Zavadsky 2001-05-14 09:18:45 UTC
*** Issue 12047 has been marked as a duplicate of this issue. ***
Comment 4 vnemec 2001-05-25 16:38:31 UTC
verified in [main trunk] (dev196)
Comment 5 Quality Engineering 2003-07-01 15:32:13 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.