Bug 211180

Summary: Statements recovery fails inside annotation of a local variable
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eric_jodet
Version: 3.3   
Target Milestone: 3.4 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description David Audel CLA 2007-11-28 04:35:32 EST
build I20071120-1300

1) create X.java
public class X{
	void foo() {
		#
		@MyAnnot(value=) int i;
	}
}
@interface MyAnnot {
	String value();
}
2) open the ASTView
There is no local variable in the AST
Comment 1 David Audel CLA 2007-11-28 06:02:53 EST
Created attachment 83964 [details]
Proposed fix
Comment 2 David Audel CLA 2007-11-28 06:05:22 EST
Released for 3.4M4.

Test added
  StatementRecoveryTest_1_5#test0002()

Comment 3 Eric Jodet CLA 2007-12-11 09:43:53 EST
Verified for 3.4 M4 using build I20071210-1800