Bug 211180 - Statements recovery fails inside annotation of a local variable
Summary: Statements recovery fails inside annotation of a local variable
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 04:35 EST by David Audel CLA
Modified: 2007-12-11 09:43 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (3.66 KB, patch)
2007-11-28 06:02 EST, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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