Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-03-09 06:40:54 +0000
committerCaspar De Groot2011-03-09 06:40:54 +0000
commit156bbdb292999faa6eb1a458485b58cf00e13167 (patch)
treeb7090382b00c60bb6aa05b2f8d6e243802392af5
parent5249b3022057ed9645f95c03b51720c3057c4e24 (diff)
downloadcdo-156bbdb292999faa6eb1a458485b58cf00e13167.tar.gz
cdo-156bbdb292999faa6eb1a458485b58cf00e13167.tar.xz
cdo-156bbdb292999faa6eb1a458485b58cf00e13167.zip
[Bug 338620] CommitIntegrityCheck.hasPersistentOpposite is broken
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338620
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java4
1 files changed, 2 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 1a9a651857..fee33f3ce5 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
@@ -339,7 +339,7 @@ public class CommitIntegrityCheck
{
for (EReference eRef : referencer.eClass().getEAllReferences())
{
- if (hasPersistentOpposite(eRef))
+ if (EMFUtil.isPersistent(eRef) && hasPersistentOpposite(eRef))
{
if (eRef.isMany())
{
@@ -372,7 +372,7 @@ public class CommitIntegrityCheck
for (EReference eRef : referencer.eClass().getEAllReferences())
{
- if (hasPersistentOpposite(eRef))
+ if (EMFUtil.isPersistent(eRef) && hasPersistentOpposite(eRef))
{
Object value = cleanRev.get(eRef, EStore.NO_INDEX);
if (value != null)

Back to the top