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 92970 - Tree of search results is badly broken sometimes
Summary: Tree of search results is badly broken sometimes
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
: 95434 97717 100480 105364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-22 15:50 UTC by Max Sauer
Modified: 2007-09-06 15:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed screenshot (20.99 KB, image/png)
2007-01-22 15:54 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2007-01-22 15:50:18 UTC
On susequents attempts of search&replace, combined with using of up/down "arrow"
JButtons, the Search & Replace preview does not overdraw properly. Reproducible
almost everytime on my Linux box. See attached screenshot.

---
NetBeans IDE Dev (Build 070122)
1.6.0; Java HotSpot(TM) Server VM 1.6.0-b105
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 1 Max Sauer 2007-01-22 15:54:11 UTC
Created attachment 37574 [details]
proposed screenshot
Comment 2 Marian Petras 2007-02-14 10:26:26 UTC
*** Issue 95434 has been marked as a duplicate of this issue. ***
Comment 3 Marian Petras 2007-03-13 14:10:34 UTC
*** Issue 97717 has been marked as a duplicate of this issue. ***
Comment 4 Marian Petras 2007-03-13 14:15:26 UTC
I have not seen it for a long time but people continue reporting it - it must be
fixed in NB 6.0.
Comment 5 ehucka 2007-04-24 15:01:09 UTC
NetBeans IDE Dev (Build 20070424-0311)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.16-1.2122_FC5 running on i386
en_US (nb); UTF-8

I can see it in most of search results windows with more than cca 20 files nodes.
Comment 6 Marian Mirilovic 2007-05-14 11:57:32 UTC
I am able to reproduce this regularly, this is very annoying :
I am not sure there is a hidden node or just white space - so I don't trust to
results ;(
Comment 7 Marian Petras 2007-06-11 09:37:08 UTC
*** Issue 105364 has been marked as a duplicate of this issue. ***
Comment 8 Marian Petras 2007-06-20 21:30:57 UTC
I have a reproducible test case:

Open the following projects (all of them are available in the NetBeans CVS repository):

   - debuggercore
   - debuggercore/test/qa-functional/data/debugTestProject
   - utilities

and search for string "msgMemory" across all open projects.

It is interesting that I cannot reproduce it if "utilities" is not searched, although there are no search hits in the
"utilities" module.
Comment 9 Marian Petras 2007-06-21 12:31:30 UTC
Fixed in the trunk.

The problem appeared if some file was hit multiple times, e.g. if a project and its subproject (in the sense of
hiararchy of directories) were searched. I just fixed the part of code which should prevent displaying duplicate hits in
the search results window. It was there but it did not work because condition

   if (instanceOfArrayList.add(someObject) == false) ...

was never met.

Modified file:
   utilities/src/org/netbeans/modules/search/ResultModel.java   (1.57)

Diff:
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/ResultModel.java?r1=1.56&r2=1.57&diff_format=u
Comment 10 Max Sauer 2007-06-27 10:53:43 UTC
Verified. Looks like it helped, I cannot reproduce it anymore.
---
Product Version: NetBeans IDE Dev (Build 070627, C/C++ Pack 20070621) 
Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.12-1.1390_FC4smp running on i386; 
UTF-8; en_US (nb) Userdir: /space/testjsp0
Comment 11 Marian Petras 2007-09-06 15:17:48 UTC
*** Issue 100480 has been marked as a duplicate of this issue. ***