summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-07-04 01:02:06 (EDT)
committerCaspar De Groot2011-07-04 01:02:06 (EDT)
commita434dcc32b4f4ff86818a334dbe04b3878b8604f (patch)
tree30725125cf517e49c58af6ea9fb9581ef456c0d4
parent3f26368db94429f88afa0ed215f78d5af8ed2781 (diff)
downloadcdo-a434dcc32b4f4ff86818a334dbe04b3878b8604f.zip
cdo-a434dcc32b4f4ff86818a334dbe04b3878b8604f.tar.gz
cdo-a434dcc32b4f4ff86818a334dbe04b3878b8604f.tar.bz2
[Bug 350420] CommitIntegrityCheck should check old set target only if its containtment or has eOpp
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350420
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
index 2ca6aef..e841719 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
@@ -249,8 +249,11 @@ public class CommitIntegrityCheck
CDOID oldID = (CDOID)transaction.convertObjectToID(oldIDOrObject);
if (oldIDOrObject != null)
{
- // Old child must be included
- checkIncluded(oldID, "removed/former child/refTarget of", dirtyObject);
+ // Old child must be included if it's the container or has an eOpposite
+ if (containmentOrWithOpposite)
+ {
+ checkIncluded(oldID, "removed/former child/refTarget of", dirtyObject);
+ }
}
if (newIDOrObject != null)