[ 
https://issues.apache.org/jira/browse/TUSCANY-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843592#action_12843592
 ] 

Simon Laws commented on TUSCANY-3483:
-------------------------------------

Having looked at this problem in more detail it's not clear that this is a 
problem with the Tuscany code. Both of these tests look for a mutually 
exclusive intent error to prove that an intent has been added to the model when 
an @Requires annotation is present in the Java implementation. 

The subtlety here is the order in which structure and implementation hierarchy 
processing is done. The policy spec says of structural hierarchy processing:

877 The intents declared on elements higher in the structural hierarchy of a 
given element MUST be applied 
878 to the element EXCEPT 
879 . if any of the inherited intents is mutually exclusive with an intent 
applied on the element, then the 
880 inherited intent MUST be ignored 
881 
882 . if the overall set of intents from the element itself and from its 
structural hierarchy contains both 
883 an unqualified version and a qualified version of the same intent, the 
qualified version of the intent 
884 MUST be used..

So if we apply the hierarchical processing first then the structure hierarchy 
processing will ignore the mutually exclusive intents and no error will occur. 
This is why the tests don't work. 

The other wrinkle here is that we aggregate intents/policy sets into endpoints 
and endpoint references rather than services and references. Not convinced this 
is significant but something to be aware of. 

Am considering whether to raise with OASIS. 



> Tuscany fixes to make POJO_8003 and POJO_8012 work
> --------------------------------------------------
>
>                 Key: TUSCANY-3483
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3483
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - TUSCANY
>    Affects Versions: Java-SCA-2.0
>         Environment: All
>            Reporter: Simon Laws
>
>   testDummy(client_javapojo.POJO_8003_TestCase)
>    SEVERE: Intent
> {http://docs.oasis-open.org/ns/opencsa/sca/200903}propagatesTransaction
> is not defined in SCA definitions
>    Incorrect namespace for intent in
> org.oasisopen.sca.test.service1WithIntentImpl
>   
>  testDummy(client_javapojo.POJO_8012_TestCase)
>    SEVERE: Intent
> {http://docs.oasis-open.org/ns/opencsa/sca/200903}managedTransaction
> is not defined in SCA definitions
>    Incorrect namespace for intent in
> org.oasisopen.sca.test.service1WithIntentImpl
> Looks like the processing of @Requires attributes is not correct in the way 
> that these implementation intents are subsequently compared with intents from 
> the SCDL. Needs further investigation. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to