Alexander Falb created OWB-1171:
-----------------------------------
Summary: @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.3.15#6346)