Community
Participate
Working Groups
Accessing the LISTERAL constant in the generated package can lead to trouble because we are using two different implementations (native and legacy). Especially if features are compared this could be troublesome. To make sure that developers only use getModelXYZ() methods which deliver the correct package for a given test configuration, LITERALS should be removed.
Created attachment 189208 [details] Patch v1 I changed the flag in all models and regenerated. Tests are passing except for Bugzilla_305527_Test.testAvoidReferencingDifferentViews(). Since the Mango Package was not correctly prepared for legacy this might indicate a but in legacy. I'd suggest to investigate this issue on a separate bugzilla and skip this test for legacy until this is solved. Second thing I noticed, is that org.eclipse.emf.cdo.tests.model5.impl.TestFeatureMapImpl has a changed implementation of getPeople(). Is this still correct? Can anyone remember why this was changed. The related legacy class does not change the implementation. Beside that everything should be o.k.
Too much to look at it all in detail, but I'm sure that's not necessary. Okay to commit... Bugzilla_335772_Test has no copyright header and no author comment. Can you fix that on the fly?
Was it intended to create MangoFactory and MangoPackage?
>Was it intended to create MangoFactory and MangoPackage? Yes. As I wrote above this was a mistake in the Mango test plug-in ;)
I fixed the header of Bugzilla_335772_Test and the author tag.
Committed revision 7179
Closed as resolved.
Available in R20110608-1407