[cdi-dev] [JBoss JIRA] (CDI-703) Carify indirect specialization

Matej Novotny (JIRA) issues at jboss.org
Thu Jun 1 04:29:00 EDT 2017


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

Matej Novotny edited comment on CDI-703 at 6/1/17 4:28 AM:
-----------------------------------------------------------

It's not my assumption, that's how transitive relation works by definition.
As for {{@Named}} this is clear too, just look few lines below that, where the spec says:
bq. If Y has a bean name and X declares a bean name explicitly the container automatically detects the problem and treats it as a definition error.

Again, apply substitution and you have a result -> definition error if both have {{@Named}}.


was (Author: manovotn):
It's not my assumption, that's how transitive relation works by definition.
As for {{@Named}} this is clear too, just look few lines below that, where the spec says:
bq. If Y has a bean name and X declares a bean name explicitly the container automatically detects the problem and treats it as a definition error.

Again, apply transitive relation rules and you have a result -> definition error if both have {{@Named}}.

> Carify indirect specialization
> ------------------------------
>
>                 Key: CDI-703
>                 URL: https://issues.jboss.org/browse/CDI-703
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Inheritance and Specialization
>    Affects Versions: 2.0 .Final
>            Reporter: Antoine Sabot-Durand
>
> Indirect specialization in chapter 4.3.1 lacks clarification regarding intermediate beans attributes (qualifier and name) on specializing bean bean.
> Discussion in CDITCK-580 illustrates this concern.



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


More information about the cdi-dev mailing list