Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: alzamabar on March 08, 2009, 08:30:40 pm
-
Hi, I'm designing a SD. I used a message of type 'New' which created an object. The problem is that it automatically also created the signature for destroy (an 'X' at the end of the lifeline). According to the UML specification the 'X' should appear as consequence of a destroy() method. I think this is a bug.
-
I'm not sure if this affects drawing a sequence diagram, but just in case...
Check the Tools | Options | Diagram | Sequence dialog. The GarbageCollect (auto delete) setting - which is checked by default I think - will probably cause a termination (destructor) to be added to the object lifeline.
Also check the Tools | Options | Source Code Engineering | Object Lifetimes dialog. You should see several settings under the Destructor heading. I believe Generate Destructor is on by default.
Try turning this off. It won't retroactively affect your work to date, but it might change how EA handles new diagrams.
HTH, David
-
Hi David, that worked.
Thanks.
M.
-
But which one?
Given my spotty memory about which setting would work (or if they would work at all) it could help the rest of us to know.
-
I've tried both, but I guess that the Garbage collector one would have done the trick
-
That sounds right. The second suggestion was more along the lines of "... and if that doesn't work here's a long shot."
Thanks for clearing this up. Since I seem to keep forgetting this detail, you are probably helping others who might need to know this.
David