You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2013/09/19 15:47:51 UTC

[jira] [Resolved] (OWB-675) Alternative resolving does not take Qualifiers into consideration

     [ https://issues.apache.org/jira/browse/OWB-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-675.
-------------------------------

    Resolution: Fixed

Actually is now resolved since quite some time it seems.
The candidates for the beans all have the Qualifier in question. Thus we don't need to check them again in BeanManager#resolve().
                
> Alternative resolving does not take Qualifiers into consideration
> -----------------------------------------------------------------
>
>                 Key: OWB-675
>                 URL: https://issues.apache.org/jira/browse/OWB-675
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.2.1
>
>
> Consider the following situation:
> public interface X ..
> @SomeQualifier
> public class Foo implements X ...
> @Alternative
> public class Bar implements X ...
> and an InjectionPoint
> private @Inject @SomeQualifier X x;
> In this case an instance of Foo should be injected. 
> Currently we do not consider the Qualifiers when resolving alternatives, thus we wrongly inject the @Alternative Bar.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira