AppliesTo match algorithm should be a OR condition in the targeted elements list
--------------------------------------------------------------------------------

                 Key: QI-241
                 URL: http://issues.ops4j.org/browse/QI-241
             Project: Qi4j
          Issue Type: Bug
          Components: Core Runtime
            Reporter: Paul Merlin
            Assignee: Rickard Öberg
         Attachments: AppliesToOrConditionTest.java

Hey,

While playing with Concerns I came accross something that looks like a bug.
I wanted to write a ConcernOf<InvocationHandler> that AppliesTo several 
annotations.

The javadoc of the AppliesTo annotation value states :

    List of interfaces, annotations or AppliesToFilter implementation classes.
    If one of them matches the current element it will be accepted, so this 
list can be considered an "or".

It seems the implementation makes it a "and".

Attached is a unit test that assert it is a "or". Do not pass with current qi4j 
trunk. I did not put it directly in qi4j-tests as it seems this project is 
being reworked ATM.

Paul



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to