[JBoss JIRA] (CDI-663) Usage of repeatable qualifiers contradicts several statements in the spec
by Tomas Remes (JIRA)
[ https://issues.jboss.org/browse/CDI-663?page=com.atlassian.jira.plugin.sy... ]
Tomas Remes updated CDI-663:
----------------------------
Fix Version/s: 2.0 .Final
> 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)
8 years, 1 month
[JBoss JIRA] (CDI-662) Fix Instance.isResolvable() text and javadoc
by Martin Kouba (JIRA)
Martin Kouba created CDI-662:
--------------------------------
Summary: Fix Instance.isResolvable() text and javadoc
Key: CDI-662
URL: https://issues.jboss.org/browse/CDI-662
Project: CDI Specification Issues
Issue Type: Clarification
Reporter: Martin Kouba
Fix For: 2.0 .Final
A note that {{Instance.isResolvable()}} *IS* resolving ambiguities is missing in the spec text and javadoc.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 1 month
[JBoss JIRA] (CDI-232) Relax requirements for built-in Instance
by John Ament (JIRA)
[ https://issues.jboss.org/browse/CDI-232?page=com.atlassian.jira.plugin.sy... ]
John Ament reassigned CDI-232:
------------------------------
Assignee: John Ament
> Relax requirements for built-in Instance
> ----------------------------------------
>
> Key: CDI-232
> URL: https://issues.jboss.org/browse/CDI-232
> Project: CDI Specification Issues
> Issue Type: Clarification
> Affects Versions: 1.1.EDR
> Reporter: Martin Kouba
> Assignee: John Ament
> Priority: Minor
> Labels: F2F2016
> Fix For: 2.0 .Final
>
>
> 5.6.2. The built-in Instance
> {quote}
> The container must provide a built-in bean with:
> * Instance<X> and Provider<X> for every legal bean type X in its set of bean types,
> * every qualifier type in its set of qualifier types,
> {quote}
> This type/qualifier requirements seem to be too strict. Maybe we should omit these and instead force implementation to satisfy every injection point for every legal bean type and corresponding qualifiers found in application... or something like that. I'm not sure about the wording.
> By the way Weld (2.0.0.Alpha2) does not fulfil these requirements at the moment.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 1 month