Project: JDT
Bug 53477 AnonymousClassDeclaration has wrong range
Reported: 2004-03-02 04:29:45 | Status: verified fixed

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)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ChangeSignatureTests.java