Hi,
in line 598 of org.eclipse.m2m.atl.engine.emfvm.adapter.EMFModelAdapter
(from the Galileo release)I found
EEnumLiteral literal = eenum.getEEnumLiteral(settableValue.toString());
Shouldn't that be replaced for consistency reasons with a call to
getEEnumLiteralByLiteral()
which compares with the literal rather than with the name feature?
Regards,
Henrik
-------------------------------------------------------
EEnum eenum = (EEnum)type;
if (settableValue != null) {
EEnumLiteral literal =
eenum.getEEnumLiteralByLiteral(settableValue.toString());
if (literal != null) {
eo.eSet(feature, literal.getInstance());
} else {
throw new VMException(
frame,
Messages
.getString(
"EMFModelAdapter.LITERALERROR", new Object[] {settableValue,
eenum.getName()})); //$NON-NLS-1$
}
}