Bug 82140

Summary: AST: Annotation node not in AST
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: carl_mcconnell
Version: 3.0   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2005-01-04 10:24:20 EST
20050104

In the following code, class A has no modifiers. Should have a
SingleMemberAnnotation for @An

public @interface An1 {
	String value();
	String item() default "Hello";

}

@An1(value="X") class A {
	
}
Comment 1 Martin Aeschlimann CLA 2005-01-04 11:59:41 EST
An other example is

@An2 public class Test2 {

	@An1 Object o;
	@An3 void foo() {
		
	}
}

No annotation nodes for '@An1' and '@An3'
Comment 2 Olivier Thomann CLA 2005-01-04 21:53:07 EST
Fixed and released in HEAD.
Regression tests added in ASTConverter15Test.test0096-test0098.
Comment 3 Olivier Thomann CLA 2005-01-20 21:31:06 EST
*** Bug 83363 has been marked as a duplicate of this bug. ***
Comment 4 David Audel CLA 2005-02-16 12:29:06 EST
Verified in I20050215-2300