[cdi-dev] [JBoss JIRA] (CDI-663) Usage of repeatable qualifiers contradicts several statements in the spec

Tomas Remes (JIRA) issues at jboss.org
Wed Dec 7 09:02:01 EST 2016


    [ https://issues.jboss.org/browse/CDI-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13335303#comment-13335303 ] 

Tomas Remes commented on CDI-663:
---------------------------------

I personally think we should make these statements more explicit and keep this validation rule for non-repeating annotations.

> Usage of repeatable qualifiers contradicts several statements in the spec
> -------------------------------------------------------------------------
>
>                 Key: CDI-663
>                 URL: https://issues.jboss.org/browse/CDI-663
>             Project: CDI Specification Issues
>          Issue Type: Bug
>            Reporter: Tomas Remes
>             Fix For: 2.0 .Final
>
>
> Using repeatable qualifier is in contradiction with {{11.3.12. Observer method resolution}}:
> | If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.
> {{5.6.1. The Instance interface}}:
> | If two instances of the same qualifier type are passed to select(), an IllegalArgumentException is thrown.
> {{10.2.3. The Event interface}}
> | If two instances of the same qualifier type are passed to select(), an llegalArgumentException is thrown.
> {{11.3.6. Obtaining a Bean by type}}
> | If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.
> {{11.3.13. Decorator resolution}}
> | If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.
> {{11.3.14. Interceptor resolution}}
> | If two instances of the same interceptor binding type are given, an IllegalArgumentException is thrown.
> Should we remove this statement or make it more explicit by saying that this is true only for non-repeatable qualifiers/annotations?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list