Bug 183538

Summary: Not getting @Inherited annotation on annotation types from binary
Product: [Eclipse Project] JDT Reporter: Walter Harley <eclipse>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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