Community
Participate
Working Groups
The JLS3 states on page 272: A consequence of the fact that an annotation type cannot explicitly declare a superclass or superinterface is that a subclass or subinterface of an annotation type is never itself an annotation type. Similarly, annotation.Annotation is not itself an annotation type. Attached is a file containing examples of an interface extending an annotation type and a class implementing an annotation type. javac compiles this file without error. I'm using eclipse: Version: 3.1.0 Build id: I20050202-0800
Created attachment 17787 [details] Testcase
Indeed we are a bit to strict.
Added AnnotationTest#test110.
Fixed in latest; we now tolerate annotation types where we allow super interfaces.
Verified in I20050214