Bug 47576 - search in working set does not work across projects
Summary: search in working set does not work across projects
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 15:35 EST by quartz quartz CLA
Modified: 2004-02-04 07:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description quartz quartz CLA 2003-11-26 15:35:35 EST
project A and B opened.
working set contains only project B.
in project A, some class x, has e.printStackTrace() in it.

right-click "printStackTrace", search reference in working set above (B).
it returns no results, although the project B contains many printStackTrace();

goto project B, find an example of printStackTrace, and search again but in
workspace. Returns results (granted you create some!)
Comment 1 quartz quartz CLA 2003-11-26 15:36:08 EST
on M5
Comment 2 Tom Hofmann CLA 2003-11-27 04:30:12 EST
Thomas, search is your domain (and: would this go into platform search or
jdt-something?).
Comment 3 Thomas M??der CLA 2003-11-27 05:53:42 EST
Philippe, could you comment if that's the expected behaviour? Please send back
to us (jdt ui) if not.
Comment 4 Philipe Mulet CLA 2003-11-27 07:02:30 EST
Feels like our bug.
Comment 5 Kent Johnson CLA 2003-11-28 11:18:13 EST
I've tried this with a simple test and it works fine for me.

There are many implementors of printStackTrace(). By asking for references to a 
specific one, you are asking for senders which not only match the method name 
but also the receiver type.

So what happens if you right-click "printStackTrace" and search for references 
in the workspace & not the working set B... does it find references in the 
project B, that are not found in the working set search?
Comment 6 quartz quartz CLA 2003-11-28 21:51:02 EST
please re-read the bug report. I just said that searching in workspace does
report  result.

you have to select the printStackTrace() (to start the search) on a class NOT in
the working set. In the current case, the class x is in project A. working set
is only project B.
Comment 7 Kent Johnson CLA 2003-12-02 10:25:19 EST
Well actually you said:

1. in project A, some class x, has e.printStackTrace() in it.
2. right-click "printStackTrace", search reference in working set above (B).
it returns no results, although the project B contains many printStackTrace();
3. goto project B, find an example of printStackTrace, and search again but in
workspace. Returns results (granted you create some!)

You did NOT say in step #2 that you found references in project B by searching 
the workspace with the EXACT same method in class x from project A.
Comment 8 Jerome Lanneluc CLA 2003-12-17 09:06:36 EST
Please reopen when you answer Kent's question.
Comment 9 quartz quartz CLA 2003-12-17 10:29:09 EST
I don't understand Kent's question, if there is any.
I'm talking to humans, not machines. I'm allowed to imprecisions sometimes...
Sorry. 

But anyway, once again, a bug, this bug, got magically fixed.
I use post-m5 i2003-12-11 and it works fine.
Comment 10 Jerome Lanneluc CLA 2003-12-17 10:33:46 EST
Sorry if I upset you (I didn't mean too). Thank you for verifying this works in 
I20031211.

Can I close this bug as WORKSFORME?
Comment 11 Jerome Lanneluc CLA 2004-02-04 07:40:59 EST
I guess I can close it since there was no response in more than a month.