Community
Participate
Working Groups
Trying to rename a class with internal classes (or perhaps more precisely a class that is a referenced parent of an internal class) fails to pick up positionality. That is, rename within 'new >ExternalClass.InternalClass<(...' causes InternalClass to be renamed, not ExternalClass, even if cursor is within the text of 'ExternalClass'. I'll attach an swf demo.
Created attachment 17574 [details] Demo
What build are you using?
Using latest build, eclipse-SDK-I20050126-0800-linux-gtk.
A simpler test case is: public class Test { public static class Sub {} } class X { void foo() { new Test.Sub(); } } Select Test in "new Test.Sub();" and try to refactor it... Dialog is opened with Sub instead of Test. Problem comes from Selection Engine...
+1 for RC2
Created attachment 22308 [details] Proposed patch
Fixed and tests added SelectionTest#test54() -> test55() ResolveTests#testTypeInsideConstructor()
Verified using N20050606-0010 + JDT/Core HEAD
Verified in I20050610-0010.