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 162011 - "Find in projects" no longer honors "Match Case"
Summary: "Find in projects" no longer honors "Match Case"
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 06:28 UTC by janicki
Modified: 2009-04-09 19:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Find dialog and wrong result (text case) (92.21 KB, image/png)
2009-04-07 06:45 UTC, janicki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janicki 2009-04-06 06:28:08 UTC
I tried to search on an all-caps word, with "Match Case" selected.  Instead it found all lower-case occurrences too, as if "Match Case" was not selected.

Version 6.7m2
Comment 1 Andrey Yamkovoy 2009-04-06 07:36:14 UTC
I can't reproduce this issue. I checked it on JavaSE project and it works as expected.
Could you please provide more information: project type, search options etc ...
Comment 2 Andrey Yamkovoy 2009-04-07 06:30:09 UTC
Marking as WORKSFORME until additional info be provided.
Comment 3 janicki 2009-04-07 06:44:39 UTC
I restarted but same error.  (see attached pic)

Project type is freeform j2se.  
I think I had previously turned off some default modules... could that affect it?  Also, this is after an Assertion error.  See bug# 159821
Next I'll try a fresh install.

Product Version: NetBeans IDE Dev (Build 200902231810)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)
Userdir: /Users/cmjanicki/.netbeans/6.7m2
Comment 4 janicki 2009-04-07 06:45:54 UTC
Created attachment 79585 [details]
Find dialog and wrong result (text case)
Comment 5 Andrey Yamkovoy 2009-04-07 06:55:04 UTC
Thanks for the provided additional info.
I still can't reproduce it on Windows.
Will try on MacOS ... Maybe it's Apple's JDK issue ...
Comment 6 janicki 2009-04-07 07:09:29 UTC
FWIW, I just upgraded to NetBeans 6.7M3, and the "Match Case" still doesn't work.  Selecting "Regular Expression" didn't make a difference.  The "Whole 
Words" option worked as expected.  I did the normal install, and it imported my settings from 6.5.  I didn't make any module customizations this time.

I also tried searching from a folder or on a specific file... no difference.

HOWEVER, if I search from within the editor (using the search bar that pops up at the bottom)... that search honors the "Match Case" option.  So the problem 
is just in "Find in Projects".

Note: I didn't get the Assertion error on startup this time, so that bug noted in my previous post is probably unrelated.
Comment 7 Alexei Mokeev 2009-04-07 07:26:44 UTC
It make sense to keep the issue open.
Comment 8 Andrey Yamkovoy 2009-04-07 07:49:35 UTC
Reproduces on MacOS.
Comment 9 Andrey Yamkovoy 2009-04-07 08:57:51 UTC
fixed in the trunk.
http://hg.netbeans.org/main/rev/e841c2806dbe
Comment 10 Quality Engineering 2009-04-09 19:28:20 UTC
Integrated into 'main-golden', will be available in build *200904091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e841c2806dbe
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: Fix for #162011 - "Find in projects" no longer honors "Match Case"