Enhancing @Stateless, @Stateful and @Singleton annotations with ElementType.ANNOTATION_TYPE
currently the @Stateless, @Stateful annotations look like:
@Target(value =
{ElementType.TYPE}
) @Retention(value = RetentionPolicy.RUNTIME) public @interface Stateless {}
I would like to extend the @Target of all @Stateless, @Stateful, @Singleton beans to:
@Target(value =
{ElementType.TYPE,ElementType.ANNOTATION_TYPE}
)
(add ElementType.ANNOTATION_TYPE)
This would allow to use EJB meta-annotations in CDI @Stereotype definition
Reported by abien
mvatkina said: This is being discussed in the Java EE platform EG: http://java.net/projects/javaee-spec/lists/jsr342-experts/archive/2012-08/message/20
mvatkina said: Reopening to move to java-ee project
ldemichiel said: As discussed in the expert group, we would like to address the topic of expanded "stereotype"/"metatype" support in Java EE 8.
This issue was imported from java.net JIRA JAVAEE_SPEC-12