Error: The Association "" is defect: At least two member ends are required.
Hi,
I got the above error message after refactoring, moving and deleting several classes. I already tried "reparse", close project and several other options but the error remains. How do I get rid of it?
Regards,
Michael
I got the above error message after refactoring, moving and deleting several classes. I already tried "reparse", close project and several other options but the error remains. How do I get rid of it?
Regards,
Michael
Comments
Thank you for reporting this issue. It seems that the reverse engineering sometimes removes member ends from associations and so the association gets corrupted.
I think you have to manually delete the defect association. Therefor search it within the UML Lab tree view (or in your class diagram) and delete it there. So far, navigation from the problems view to the UML Lab tree is not supported - I added a feature request for this issue (http://trac.yatta.de/ticket/100275). Until then, the 'location' column in the problems view gives you a hint where to find the association. Please note, that this value is not available in the current release - but will be in the upcoming release which will be available tomorrow.
Hope this helps you.
Regards,
Manuel
PS: After deleting the defect association invoke "Compare Generated Code" (right-click in the class diagram editor) to see if the code generator is about to change your source code. If so, please reverse engineer the changed source files into the model to bring model and code in sync again. You can choose reparse all files or drag the affected files from the package explorer in the diagram while pressing the "Ctrl" key.