Community
Participate
Working Groups
Created attachment 132305 [details] The XSD file to use when generating the model Build ID: M20090211-1700 Steps To Reproduce: 1. Use the XSD attached in this bug. 2. XSD has a "FeatureID" element in definition <xs:element name="FeatureID" .... 3. Create a "new EMF model" in an EMF project 4. Choose XML schema 5. Browse for the XSD provided as an attachment for this bug 6. Press Next and then Finish 7. The .genmodel file is generated 8. Right clisk on the root node of the genmodel and select "Generate Model Code" 9. Compilation errors exist in files "DcamLockTypeImpl.java" line 1642 and "SmartFeatureAdrTypeImpl.java" line 548 More information: There is an invalid comparison at the above mentioned lines. There is a sort of conflict between the "featureID" variable used internally by the EMF case and the "FeatureID" element from the XSD when we generate the code.
The featureID field needs to be qualified with "this" in eIsSet to avoid the collision with the featureID parameter. The fix is committed to CVS for 2.5.
Fix available in HEAD: 2.5.0.I200904211800.
Fix available in HEAD: 2.5.0 (R200906151043).