Hi,
I define an ecore model with Java interfaces:
import java.net.InetAddress;
/**
* @model
*/
public interface net {
/**
* @model dataType="java.net.InetAddress"
*/
InetAddress getAddress();
}
and
import java.net.InetAddress;
import java.util.List;
/**
* @model
*/
public interface nic {
/**
* @model containment="true" required="false" type="java.net.InetAddress"
*/
List<InetAddress> getAddresses();
}
Now, I would expect that ecore uses the same eType for the attribute net.address and the reference nic.addresses. However, it uses two different eTypes: InetAddress for the attribute and InetAddress_1 for the reference.
How can I enforce that the same eType is used? And why is that happening anyways?
I'm using Eclispe Juno.
Thanks,
Martin
[Updated on: Thu, 24 January 2013 06:56]
Report message to a moderator