Bug 183538 - Not getting @Inherited annotation on annotation types from binary
Summary: Not getting @Inherited annotation on annotation types from binary
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.3 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 16:42 EDT by Walter Harley CLA
Modified: 2007-04-27 10:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Harley CLA 2007-04-22 16:42:50 EDT
Per conversation with Olivier:

When an annotation type is annotated with java.lang.annotation.Inherited and we read the annotation from binary, the TagBits.AnnotationInherited flag is not getting set.

To see this, sync to HEAD of org.eclipse.jdt.compiler.apt.core and ..tests.  Put a breakpoint in InheritedAnnoProc.examineGetElementsAnnotatedWith(), and step into the call to RoundEnvironment.getElementsAnnotatedWith().  Notice that we read the InheritedAnno annotation type from binary, but that it does not have the Inherited tagBit set.

Javac on the same test is able to read the annotation properly.
Comment 1 Olivier Thomann CLA 2007-04-22 17:28:22 EDT
I'll take care of it.
Comment 2 Olivier Thomann CLA 2007-04-22 21:10:50 EDT
Released for 3.3M7.
Regression test in APT org.eclipse.jdt.compiler.apt.tests.BatchDispatchTests.testInheritedAnnosWithEclipseCompiler().
Comment 3 David Audel CLA 2007-04-27 10:50:27 EDT
Verified for 3.3 M7 using build I20070427-0010