|Re: Defining which derived class a feature from an abstract class shall use [message #941550 is a reply to message #941203]
||Fri, 12 October 2012 16:31
| Ed Merks
Registered: July 2009
On 12/10/2012 11:43 AM, John M. wrote:
> I am on the way to figure out, why I get a
> Java.io.NotSerializableException: HeaderDefinitionFieldImpl.
> I have created a EDatatype with the instance class
> org.eclipse.emf.common.util.EMap, for the use of ? extends
Yes, likely that should be marked as serializeable false because you
can't really convert such values to and from a string...
> It fails while calling the method
> BasicEMap.writeObject(entry.getValue) on line 1530. Perhaps I shall
> use some other map implementation.
No, because you need EReferences to serialize references to EObjects.
> I adjusted the method createHeaderDefinition, that values get an
> instance of BasicEMap.
> But I would say something is wrong with my HeaderDefinitionField in
> work with the BasicEMap.
No, I only told you do use this type of thing to define the type of an
operation, not the type of a feature.
> StringToHeaderDefinitionField works without any problems, but with it
> I can't define the getValues EOperation like I have done it yet.