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 2007/02/08 18:44:05 UTC

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

    [ https://issues.apache.org/jira/browse/TUSCANY-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471420 ] 

Brian Murray commented on TUSCANY-826:
--------------------------------------

I'm taking a look at this one.  

After a brief discussion with Frank and Fuhwei, it has been agreed that containment cycle prevention (making the check with each update to a containment property - through the various mechanisms that such may be updated) would be far too expensive.  The plan is instead to check for containment cycles during serialization.  

This change in plans will mean that the implementation is not in compliance with the 2.1 specification.  However, I'm told that the offending statement (quoted above) will not be present in the subsequent spec.

> Containment cycle should result in Exception
> --------------------------------------------
>
>                 Key: TUSCANY-826
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-826
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-Mx
>         Environment: Windows XP, both Sun and IBM JVMs
>            Reporter: Brian Murray
>             Fix For: Java-SDO-Mx
>
>         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.
-
You can reply to this email to add a comment to the issue online.


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