[
https://issues.apache.org/jira/browse/OWB-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274372#comment-13274372
]
Mark Struberg commented on OWB-667:
-----------------------------------
Hi!
Yes, that was one of the reasons which did lead to the creation of Apache
DeltaSpike (consisting mostly of members of the MyFaces CODI and the JBoss Seam
community). Please file a CDI spec issue that the getBeans() needs further
clarification. Imo I do not care much whether we do the filtering of
@Alternatives in BeanManager#getBeans or in BeanManager#resolve(). The only
important thing is that the container is still able to do injection resolving
and we remain portable (and backward compatible).
PS: The stuff you have as StartMain exists in OWB since more than 2 years in
our cditest module ;) We also moved it over to DeltaSpike now. See CdiCtrl. We
are happy about every helping hand though ...
> Bean queries have strange behavior (difference between Open Web Beans and the
> Reference Implementation)
> -------------------------------------------------------------------------------------------------------
>
> Key: OWB-667
> URL: https://issues.apache.org/jira/browse/OWB-667
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.4
> Environment: All
> Reporter: Phil Oser
> Assignee: Gurkan Erdogdu
> Attachments: cdi-boot.zip
>
>
> We use the BeanManager#getBeans(java.lang.reflect.Type,
> java.lang.annotation.Annotation...) to find all beans of a certain type (to
> implement something like a service locator).
> As soon as one of the beans is an activated Alternative, the list of matching
> beans is reduced to this activated Alternative.
> The expected behavior is present in the Reference Implementation.
> Please refer to the attached test cases.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira