Community
Participate
Working Groups
I200400226 public class K { class Inner { } void make() { new K(){}.new Inner(){/*x*/}; } } The AnonymousClassDeclaration whose implementation is marked by /*x*/ should have a range covering "{/*x*/}". Currently, getStartPosition() and getLength() return a range covering "{}.new Inner(){/*x*/}". (For Markus' memory: This makes NodeFinder return a wrong node, causing problems in ChangeSignatureRefactoring test A_testAll51_in)
I will investigate.
Fixed and released in HEAD. Regression test added.
Verified for 3.0 using build I200403240800.