Bug 82140 - AST: Annotation node not in AST
Summary: AST: Annotation node not in AST
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 83363 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-04 10:24 EST by Martin Aeschlimann CLA
Modified: 2005-02-16 12:29 EST (History)
1 user (show)

See Also:


Attachments

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