[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-8825) Parameter injection point should resolve taking into account member values of qualifiers

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Apr 29 19:52:18 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-8825:
----------------------------------

    Description: 
Consider the example:
{code}
public class Test {
    @Produces
    @Named("abc")
    String abc;

    @Inject
    void setA(@Named("a") String s) {
    }

    @Inject
    void setABC(@Named("abc") String s) {
    }
}
{code}
Here, injection point in method setA should not be resolved to producer field abc, and injection point in method setABC should be resolved to it. Now, both injection points are resolved to abc.

  was:
Consider the example:

public class Test {
    @Produces
    @Named("abc")
    String abc;

    @Inject
    void setA(@Named("a") String s) {
    }

    @Inject
    void setABC(@Named("abc") String s) {
    }
}

Here, injection point in method setA should not be resolved to producer field abc, and injection point in method setABC should be resolved to it. Now, both injection points are resolved to abc.



> Parameter injection point should resolve taking into account member values of qualifiers
> ----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8825
>                 URL: https://issues.jboss.org/browse/JBIDE-8825
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.M1
>
>
> Consider the example:
> {code}
> public class Test {
>     @Produces
>     @Named("abc")
>     String abc;
>     @Inject
>     void setA(@Named("a") String s) {
>     }
>     @Inject
>     void setABC(@Named("abc") String s) {
>     }
> }
> {code}
> Here, injection point in method setA should not be resolved to producer field abc, and injection point in method setABC should be resolved to it. Now, both injection points are resolved to abc.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list