You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brian Murray (JIRA)" <tu...@ws.apache.org> on 2006/10/11 20:33:36 UTC

[jira] Updated: (TUSCANY-826) Containment cycle should result in Exception

     [ http://issues.apache.org/jira/browse/TUSCANY-826?page=all ]

Brian Murray updated TUSCANY-826:
---------------------------------

    Attachment: ContainmentCycleError.java

The attached test case creates both a one and two member containment cycle.  The cycle is looped through for several iterations to show that it is indeed a cycle.

In the test case the Type of the DataObject is created with the TypeHelper.  This is to limit the attachments to a single file. I have also verified the existence of this problem using an XSD-originated Type.

> Containment cycle should result in Exception
> --------------------------------------------
>
>                 Key: TUSCANY-826
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-826
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>         Environment: Windows XP, both Sun and IBM JVMs
>            Reporter: Brian Murray
>         Attachments: ContainmentCycleError.java
>
>
> Near the bottom of page 19 in the 2.0.1 specification it is stated that "Containment cannot have cycles.  If a set or add would create a containment cycle an exception is thrown."
> However, I have found that no such exception is thrown.  I will attach a test case showing the creation of (and the potential to infinitely loop through) a containment cycle.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org