Bug 10933

Summary: DOM/AST: position of AnonymousTypeDeclaration is [-1,0]
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2002-03-07 05:42:33 EST
Build 20020305

For the code

package nested_in;

public class A_test651 {
	public void foo() {
		Runnable run= new Runnable() {
			public void run() {
				/*]*/foo();/*[*/
			}
		};
	}
}

the position of the anonymous type declaration is [-1, 0]. IMO the start 
position should be the { and the end position the }
Comment 1 Olivier Thomann CLA 2002-03-07 11:49:53 EST
Already fixed in latest. This is a duplicate of 10781.

*** This bug has been marked as a duplicate of 10781 ***