Bug 46571 - Searching for all occurrences for method declarated in local types doesn't wor
Summary: Searching for all occurrences for method declarated in local types doesn't wor
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 09:41 EST by Dirk Baeumer CLA
Modified: 2003-11-24 08:07 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 Dirk Baeumer CLA 2003-11-13 09:41:13 EST
I20031111

Test Case:

	public void bar() {
		class X {
			public void baz() {
				
			}
		}
		
		class Y extends X {
			public void baz() {
				
			}
		}
	}


- retrieve IMethod handles representing the baz() methods in the classes X and 
Y
- create a search scope containg both methods in an or pattern
- searching for all occurrences using this patter reports zero matches.


You can test this by selecting baz in X and perform a change method signature 
refactoring.
Set a break point in ChangeSignatureRefactoring.findOccurrences. The returned 
result is
empty.
Comment 1 Kent Johnson CLA 2003-11-21 10:48:46 EST
Have you tried this with the latest build?

I get 2 methods back & can choose which ones I want renamed.
Comment 2 Dirk Baeumer CLA 2003-11-21 13:02:15 EST
Tried with the latest and it works.
Comment 3 Kent Johnson CLA 2003-11-21 14:48:48 EST
This was fixed in our changes that made it into M5.
Comment 4 David Audel CLA 2003-11-24 08:07:14 EST
Verified.