[ 
https://issues.apache.org/jira/browse/TUSCANY-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wangfeng updated TUSCANY-2141:
------------------------------

    Attachment: testcase.zip
                diff.txt

The patch will detect the cyclic state.
If found,logging an warning.  

> If the composite has a cyclic include,throw an OutOfMemory exception
> --------------------------------------------------------------------
>
>                 Key: TUSCANY-2141
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2141
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.2
>            Reporter: wangfeng
>             Fix For: Java-SCA-1.2
>
>         Attachments: diff.txt, testcase.zip
>
>
> If the composite has a cyclic include,tuscany will throw an OutOfMemory 
> exception when parsing the include.
> Demo1Composite.composite
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
>            targetNamespace="http://sample";
>            xmlns:sample="http://sample";
>            name="Demo1Composite"
>          <include name="sample:Demo2Composite"/>
> </composite>
> Demo2Composite.composite
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
>            targetNamespace="http://sample";
>            xmlns:sample="http://sample";
>            name="Demo2Composite">
>         <include name="sample:Demo1Composite"/>
> </composite>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to