Community
Participate
Working Groups
1. Follow the steps to create the standard library example from annotated Java 2. Open the Ecore editor 3. Create a reference "lib" to Library in Writer 4. Choose writers in Library and set the opposite to the new attribute lib of Writer 5. Copy "lib" from Writer to Book BUG #1: The opposite field in the new Book.lib reference isn't cleared. If you generate this model, getLib() will always return null after a book has been added to the library. The model can be saved, loaded and generated without warnings or errors. 6. Fix the reference (either set the correct opposite in Library.books or Book.lib, doesn't matter which) BUG #2: The opposite in Library.writers(!) will be set to null by this. Writer.lib will still point to Library.writers. Trying to add writers or calling Writer.setLib() will cause all kinds of problems.
The fix is in CVS. I've specialized copy initialization for EReferences, so that the eOpposite is only set if the target was also copied as part of the command.
Fixed in 2.2.0 I200603300000
Move to verified as per bug 206558.