[ https://issues.apache.org/jira/browse/OWB-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143447#comment-16143447 ]
Mark Struberg commented on OWB-1171: ------------------------------------ Alex, do you want to provide a unit test or probably even a patch? > @Priority and @Alternative as sterotype > --------------------------------------- > > Key: OWB-1171 > URL: https://issues.apache.org/jira/browse/OWB-1171 > Project: OpenWebBeans > Issue Type: Bug > Reporter: Alexander Falb > > In our projekt we have an annotation for mock services > {code} > @Stereotype > @Retention(RUNTIME) > @Target(TYPE) > @ApplicationScoped > @Alternative > @Priority(1000) > public @interface ServiceMock {} > {code} > that we use like > {code} > @ServiceMock > MockUserServiceImpl implements UserService {} > {code} > which does not work, the non-mock implementation of {{UserService}} gets > injected. > According to the CDI spec 1.2 chapter 2.8 {{@Priority}} is not supported as > sterotyp, so we moved it to the class, which does not work either, but it > should!? > If we move both {{@Priority}} and {{@Alternative}} to the class, everything > works as expected, but then the sterotype is useless. -- This message was sent by Atlassian JIRA (v6.4.14#64029)