Bug 210404 - Method parameters are not recovered when followed by an annotation with a syntax error
Summary: Method parameters are not recovered when followed by an annotation with a syn...
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-20 10:39 EST by David Audel CLA
Modified: 2007-12-11 09:38 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (2.87 KB, patch)
2007-11-21 10: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-20 10:39:56 EST
build I20071107-1300

1) create X.java
public class Y {
	void foo(int var1, @Annot(at1=zz, at2=@Annot2(at21=zz, at22)) int var2) {
	}
}
2) open the ASTView
The parameter 'var1' isn't in the AST.

But if with the following test case the parameter is in the AST
public class Y {
	void foo(int var1, @Annot(at1=zz, at2) int var2) {
	}
}
Comment 1 David Audel CLA 2007-11-21 10:02:52 EST
Created attachment 83432 [details]
Proposed fix
Comment 2 David Audel CLA 2007-11-21 10:13:10 EST
Released for 3.4

Test added
  AnnotationDietRecoveryTest#test0012()
Comment 3 Eric Jodet CLA 2007-12-11 09:38:11 EST
Verified for 3.4 M4 using build I20071210-1800