Community
Participate
Working Groups
Build Identifier: 20110916-0149 Non-containment one-to-many references to Map Entry classes (i.e. class with key & value features and instance class java.util.Map$Entry) not generated to EList Initial forum post: http://www.eclipse.org/forums/index.php?t=rview&goto=759224#msg_759224 Reproducible: Always Steps to Reproduce: 1. Create an Entry class (i.e. with key & value features and instance class java.util.Map$Entry). 2. Create non-containment one-to-many reference "refToEntry" to Entry in some EClass, say DomainClass. 3. Generate code. 4. See DomainClassImpl, type of "refToEntry" field is Entry<K, V> instead of EList<Entry<K,V>>.
Created attachment 207585 [details] test model with generated code Model with possible test case for non-containment references to map entries. Problem can be found in LanguageImpl class, line 47
A fix is committed to CVS for 2.8.
Cool! Is it template only fix so it can be easily used with current EMF? EMF CVS is here, am I right? :pserver:anonymous@dev.eclipse.org:/cvsroot/modeling
No, all the changes are in GenTypedElementImpl. Yes, EMF is under there in CVS.
Thanks! Another question, will it be in Indigo SR2 or only in Juno?
It's only destined for Juno.
The fix is available in a build.
*** Bug 384591 has been marked as a duplicate of this bug. ***