Bug 95938 - [1.5][search] Search for static member type declaration fails in workspace scope
Summary: [1.5][search] Search for static member type declaration fails in workspace scope
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-19 09:40 EDT by Tobias Widmer CLA
Modified: 2005-05-20 08:08 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 Tobias Widmer CLA 2005-05-19 09:40:31 EDT
N20050519-0010:

Use following snippet:

public enum LanguageSkill {
	QUEENS_ENGLISH, FRENCH, GERMAN;

	public static class LanguageMap {
	}
}

- Search for all occurrences of LanguageMap
-> No matches are reported
-> Should report match for declaration of static class LanguageMap
Comment 1 Frederic Fusier CLA 2005-05-19 11:02:45 EDT
Another symptom of same problem...

*** This bug has been marked as a duplicate of 95794 ***
Comment 2 Frederic Fusier CLA 2005-05-19 11:10:20 EDT
Ooops, not a duplicate... I think it was as I tested it in workspace test which
had fix for bug 95974.
But removing this fix does not change anything, it's still working for me !?
Do I miss something?
Comment 3 Frederic Fusier CLA 2005-05-19 11:22:12 EDT
In fact you need to search for declaration in workspace to get no match.
Search engine finds correct match while searching in project...
Comment 4 Frederic Fusier CLA 2005-05-19 11:24:31 EDT
Not specif to enum.
Same problem with following class
public class Test {
	public static class Member {
	}
}
Search for Member declaration report one match for Project scope but none for
workspace scope...
Comment 5 Frederic Fusier CLA 2005-05-20 08:08:46 EDT
I cannot reproduce with build N20050520-0010.

Search for declaration and all occurrences of static inner class works both for
enum and class.

I was also able to Refactor->Move Member Type to new file... without any
exception...

I do not really understand what happened yesterday.

Please reopen if you see it again, thx