Re: Inconsistent or incomplete usage of @Repeatable

reza_rahman <reza_rahman@...>

I had helped develop the initial JIRA on this and I do not think EJB is the only miss, though it may be the major miss. I also agree this is an important issue to get right.

-------- Original message --------
From: Kevin Sutter <kwsutter@...>
Date: 6/21/17 3:08 PM (GMT-05:00)
Subject: [javaee-spec] Inconsistent or incomplete usage of @Repeatable

I know we discussed this back in May of 2016, but actual practice is causing us to scratch our heads...  Without the @Repeatable annotation usage being spelled out at the Platform level, we're discovering some inconsistent or incomplete usage patterns.

For example, JPA has stepped up to use the @Repeatable annotation on several of their annotations.  And, Common Annotations has identified the use with @Resource and @DataSourceDefinition.  But, what about @EJB?  It seems that this would be another valid usage of @Repeatable.  So, with each spec deciding for themselves whether to support @Repeatable, we don't have a consistent story for our users.  It won't be intuitive.  Sometimes you can skip the plural form of the annotation, and sometimes you can't.  You'll just have to "know"...

I haven't thought through every plural Annotation usage, so I'm not sure if the @EJB is the only miss.  If we're down to just a handful of misses, should we step up to support these additional @Repeatables in Java EE 8?

Thanks, Kevin

Join to automatically receive all group messages.