Community
Participate
Working Groups
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.
I'll take care of it.
Released for 3.3M7. Regression test in APT org.eclipse.jdt.compiler.apt.tests.BatchDispatchTests.testInheritedAnnosWithEclipseCompiler().
Verified for 3.3 M7 using build I20070427-0010