Bug 44397 - Search doesn't find references to local types
Summary: Search doesn't find references to local types
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-10-08 05:23 EDT by Dirk Baeumer CLA
Modified: 2003-11-24 08:09 EST (History)
1 user (show)

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-10-08 05:23:00 EDT
I20031007 + Core v375

Test case:

public class TestClass {
	public void foo() {
		class A {
			
		}
		
		A a= new A();
	}
}


Search for A. You don't get any reference
Comment 1 Dirk Baeumer CLA 2003-10-08 05:31:54 EDT
Same is true for members declared in local types.

Philippe, is there anything we can do for M4. This bugs result in funny 
results when doing refactorings on local and anonymous types.
Comment 2 Philipe Mulet CLA 2003-10-08 06:30:10 EDT
Dirk, this isn't yet supported. The only action to take for M4 is to disable 
such actions until we support them.
Comment 3 Dirk Baeumer CLA 2003-10-08 06:39:02 EDT
Disabling all the action is a pain. So we will keep them enabled and move all 
PRs to Core ;-). 

I think people will not use refactoring very frequently to refactor local 
types. They aren't very common anyway and the side effects are very local.
Comment 4 Dirk Baeumer CLA 2003-10-08 06:39:32 EDT
Kent, will this be in for M5 ?
Comment 5 Jerome Lanneluc CLA 2003-10-08 06:55:02 EDT
And we will move them all back to UI :-)
Note there is no time to implement this for M4. This is not a regression as 
this never worked before.
Comment 6 Dirk Baeumer CLA 2003-10-08 08:40:39 EDT
I am not saying that this is a regression but having local types without the 
rest of the Java API correctly working on them makes them very tricky to use 
from a client side. Its not only searching. You can't create methods in local 
types either.
Comment 7 Kent Johnson CLA 2003-11-20 17:32:46 EST
Dirk: Please let us know what other problems you're seeing with local type 
searches in M5.
Comment 8 Dirk Baeumer CLA 2003-11-21 13:11:18 EST
The described test case work in M5. They only open issue I am currently aware 
of is bug 46943. I will open a new PR if I see other cases.
Comment 9 Kent Johnson CLA 2003-11-21 14:48:05 EST
This was fixed in our changes that made it into M5.
Comment 10 David Audel CLA 2003-11-24 08:09:48 EST
Verified.