Gerhard Petracek created OWB-935:
------------------------------------
Summary: wrong result of javax.enterprise.inject.Instance in
combination with alternatives
Key: OWB-935
URL: https://issues.apache.org/jira/browse/OWB-935
Project: OpenWebBeans
Issue Type: Bug
Components: Injection and Lookup
Affects Versions: 1.2.2
Reporter: Gerhard Petracek
Fix For: 2.0.0
if the result of InjectionResolver#findByAlternatives is > 1 (for
InstanceImpl#iterator) and there is one alternative-bean in the result, beans
without alternative implementations aren't part of the result, because
alternativeSet only contains alternative beans - see:
{code}
if (containsAlternative)
{
return alternativeSet;
}
return enableSet;
{code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)