Community
Participate
Working Groups
- Create mapping with an feature Seq initializer in it - Create Feature Value Spec in initializer - Specify some feature of the domain object which has type = instance of EEnum presenting in the domain model - Specify body for that initializer which will reference literal from that enumeration (e.g. in case of usage uml2 as a metamodel, initializer will looks like: "AggregationKind::composite") - Try to generate code and execute it - ClassCast exception appear on trying to set value for the specified feature. The reason is - instance of EEnumLiteral is returned from the evaluation code then "AggregationKind::composite" is passed as an expression. From the other side, eSet(Object) is waiting for an instance of AggregationKind which will be available as a ".instance()" value of returned EEnumLiteral.
Created attachment 33658 [details] Templates
Created attachment 33659 [details] Tests
Reviewed and committed.
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug