diff options
author | Martin Fluegge | 2010-12-31 13:52:55 +0000 |
---|---|---|
committer | Martin Fluegge | 2010-12-31 13:52:55 +0000 |
commit | 65d21984b9ea473e5200e10db884eb6bab4aedf2 (patch) | |
tree | 1e42d40e77938cf8e0c128486f7f85d6f411a940 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo | |
parent | a0d3c3ff17518f09e299e5432878d328e83c7d3f (diff) | |
download | cdo-65d21984b9ea473e5200e10db884eb6bab4aedf2.tar.gz cdo-65d21984b9ea473e5200e10db884eb6bab4aedf2.tar.xz cdo-65d21984b9ea473e5200e10db884eb6bab4aedf2.zip |
[333299] Legacy fails when EClasses containing references are removed from an EPackage
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333299
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo')
-rw-r--r-- | plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyWrapper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyWrapper.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyWrapper.java index 441683e2c2..65e989fdce 100644 --- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyWrapper.java +++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyWrapper.java @@ -194,7 +194,7 @@ public abstract class CDOLegacyWrapper extends CDOObjectWrapper for (EStructuralFeature feature : CDOModelUtil.getAllPersistentFeatures(eClass)) { EReference oppositeReference = ((EStructuralFeature.Internal)feature).getEOpposite(); - if (oppositeReference != null && !oppositeReference.isContainment()) + if (oppositeReference != null && !oppositeReference.isContainment() && EMFUtil.isPersistent(oppositeReference)) { if (feature.isMany()) { |