Community
Participate
Working Groups
Build Identifier: 2.6.0.v20100614-1136 The generated code won't compile if the ecore model contains any Ecore EAnnotations with constraints -> ..., on account of the generator having emitted calls to EMF-2.6-specific EObjectValidator.validate_EveryBidirectionalReferenceIsPaired(...) method. There's a bug in GenClass.getIntrinsicConstraints() line 2978: else if (runtimeVersion < GenRuntimeVersion.EMF25_VALUE) { result.remove("NoCircularContainment"); } else if (runtimeVersion < GenRuntimeVersion.EMF26_VALUE) // ^ need to remove this else { result.remove("EveryBidirectionalReferenceIsPaired"); Reproducible: Always
Actually, looks like both elses should be removed, because you'll get the same problem with runtimeVersion="2.1-" and NoCircularContainment in addition.
It's fixed in both streams already. *** This bug has been marked as a duplicate of bug 324207 ***