[ 
https://issues.apache.org/jira/browse/OWB-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274477#comment-13274477
 ] 

Phil Oser commented on OWB-667:
-------------------------------

@Romain: 

I try to clarify my point:
  I understand the point of Mark that the javadoc of getBeans says "only 
injectable references" shall be returned. But nevertheless, I think that the 
implementation of OWB is wrong in this respect:
  It starts by evaluating the bean query. As soon as it finds just ONE 
alternative, it throws away all the found query-results.
 

 

                
> 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

        

Reply via email to