Bug 45440 - File search for \b in * finds jars not class files
Summary: File search for \b in * finds jars not class files
Status: RESOLVED DUPLICATE of bug 23341
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-23 09:38 EDT by Douglas Pollock CLA
Modified: 2003-10-23 12:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock CLA 2003-10-23 09:38:29 EDT
Do a file search for the string "\b" in the file types "*" in the Workspace.  
A long list of JAR files is returned, but not the class files.

Do a file search for the string "\b" in the file types "*.java, *.class" in 
the Workspace.  A short list of Java files is returned, but no class files.

Do a file search for the string "\b" in the file types "*.class" in the 
Workspace.  No matches.

I am expecting to find the occurrence of "\b" in SWT.class, as well as all 
other class files containing that string.
Comment 1 Dani Megert CLA 2003-10-23 09:56:49 EDT
Search does neither scan files in archives nor derived resources. There is a
feature request for search in archives.
Comment 2 Douglas Pollock CLA 2003-10-23 11:04:25 EDT
It would be helpful in the future if you actually marked duplicate bugs as 
duplicates, rather than closed them as "WORKSFORME".  I had to spend time 
finding the bug to which you refer.
Comment 3 Douglas Pollock CLA 2003-10-23 11:04:44 EDT

*** This bug has been marked as a duplicate of 23341 ***
Comment 4 Dani Megert CLA 2003-10-23 11:11:44 EDT
This bug is covering two issues: derived resources and archives. Now, if you
want to narrow it down to just archive searching then this is OK for me. I
normally don't mark a bug with n problems as duplicate of one of the n's.

>I had to spend time finding the bug to which you refer.
Same is true for me. If I would have had the bug number in mind I would have
attached it (though not marked as duplicate). And by the way: you could have
found that information in bugzilla even before filing the bug ;-)
Comment 5 Douglas Pollock CLA 2003-10-23 11:48:29 EDT
I know, I know.  I did, but I didn't include bugs that were "RESOLVED", as I 
saw the problem in the most recent I-build.

I'm not sure I understand how this is a "derived resource" problem, but that's 
probably just because I don't know what a derived resource is.  I believe what 
I have described is exactly what the person in Bug 23341 has described.  If 
that includes derived resources, then maybe it should be added to the bug 
description.  (fixing bugs by user goals, rather than implementation details)
Comment 6 Dani Megert CLA 2003-10-23 12:02:40 EDT
Derived resources a resources which are derived from existing resources (e.g.
class files generated by the Java builder). Users can also set that state using
the properties dialog.

>Do a file search for the string "\b" in the file types "*.class" in the 
>Workspace.  No matches.
Assumed you expected matches in the class files of your output folder. Those
class files are derived resources and hence no matches.
Comment 7 Douglas Pollock CLA 2003-10-23 12:11:35 EDT
Ah, okay.  Naw, I just mean the stuff in the JARs.  No worries.  (Anything I 
have compiled classes for, I also have source for.  I was just trying to show 
that the problem was not related to the ',' concatenation or search types.)  
Thanks.