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 254691 - Bad (and also missing) "Go to Symbol" match highlighting
Summary: Bad (and also missing) "Go to Symbol" match highlighting
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 09:50 UTC by stwr
Modified: 2015-09-08 01:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Bad matching - two dots (47.96 KB, image/png)
2015-08-25 09:50 UTC, stwr
Details
Bad matching - one dot (47.37 KB, image/png)
2015-08-25 09:50 UTC, stwr
Details
No matches (42.97 KB, image/png)
2015-08-25 09:51 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-25 09:50:17 UTC
Product Version: NetBeans IDE Dev (Build 201508250002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

I observed strange behavior during my test session. Please open following project --> http://services.netbeans.org/synergy/server/api/attachment.php?id=226

--Use Case--
1. Open OD|Editor|Go To. Apply following settings: All Items and Background Color (in order to clearly see what is going on)
2. Open 'Go to Symbol' dialog
3. Type 'ClassStructure'
4. Add '.*' (full input should be 'ClassStructure.*')
5. Add 'm' (full input should be 'ClassStructure.*m')
6. Remove '*' (full input should be 'ClassStructure.m')
7. Add '*' (full input should be 'ClassStructure.m*')

--Actual Result--
After 3rd step - OK, three items, all matches highlighted
After 4th step - KO, 14 items, highlighted match are two dots (see picture 'Bad matching - two dots')
After 5th step - KO, 9 items, highlighted match is one dot (see picture 'Bad matching - one dot')
After 6th step - OK, 4 items, all matches highlighted
After 7th step - KO, 4 items, no highlighted matches (see picture 'No matches')

I thought it is because wildcards. And I was almost sure it is intended behavior but I tried following input 'ClassStructure*' which gave me 3 results, and all matches are highlighted.

The assumption is that matches are not highlighted (or are highlighted badly, like these dots) whenever there is a wildcard after the selector.
Comment 1 stwr 2015-08-25 09:50:36 UTC
Created attachment 155605 [details]
Bad matching - two dots
Comment 2 stwr 2015-08-25 09:50:51 UTC
Created attachment 155606 [details]
Bad matching - one dot
Comment 3 stwr 2015-08-25 09:51:08 UTC
Created attachment 155607 [details]
No matches
Comment 4 Tomas Zezula 2015-09-07 14:40:36 UTC
Reproducable.
Comment 5 Tomas Zezula 2015-09-07 16:05:31 UTC
Fixed jet-main 1d347aa0730d.


3. Type 'ClassStructure' - highlights 'ClassStructure'
4. Add '.*' (full input should be 'ClassStructure.*') - highlights nothing as the search text is "" in ClassStructure scope.
5. Add 'm' (full input should be 'ClassStructure.*m') - highlights 'm'
6. Remove '*' (full input should be 'ClassStructure.m') - highlights 'm'
7. Add '*' (full input should be 'ClassStructure.m*') - highlights 'm'


Thanks for the report.
Comment 6 Quality Engineering 2015-09-08 01:21:52 UTC
Integrated into 'main-silver', will be available in build *201509080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1d347aa0730d
User: Tomas Zezula <tzezula@netbeans.org>
Log: #254691:Bad (and also missing) "Go to Symbol" match highlighting