|Duplicate ESETFLAG values when >32 features/class. [message #1742933]
||Thu, 08 September 2016 15:55
| Paul Slauenwhite
Registered: July 2009
When generating ecore model code (EMF Ecore Code Generator: 2.11.1.v20160208-0841), classes with >32 features contain duplicate ESETFLAG values . For example:|
protected static final int PROPERTY_X_ESETFLAG = 1 << 24;
protected static final int PROPERTY_Y_EFLAG = 1 << 24;
As a result, when updating PROPERTY_X, ALL_FLAGS is updated to indicate that PROPERTY_Y has changed.
This appears to be a limitation in the EMF Code Generator since an integer is used for ALL_FLAGS, imposing a 32 'feature per class' restriction since an integer (32-bit) can only be left shifted 32 places.
Is there a work-around?
Submitted EMF bug: Bug 501088
For more information, see 155669: Create Remote Script with PUT XML is giving error.
[Updated on: Thu, 08 September 2016 16:18]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01930 seconds