Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on January 27, 2013, 08:19:09 pm

Title: Reverse and Forward Engineering: Is It BUG?
Post by: zalbina on January 27, 2013, 08:19:09 pm
Hi,

Today, suddenly, I found very weird thing related to the reverse engineering. I built some class with the couple functions and attributes in EA, generated source code after that. Everything seems right. I implemented my functions and performed reverse engineering procedure back to EA. Everything seems right again, BUT I desided to add some code to my functions and again generated java code from EA. Just guess what should I see in java code? That's right, CODE, BUT all my functions are EMPTIES. So, I don't know, may be I miss something in my understanding of things, or it's a BUG. I forgot to mention that it happens when I delete first generated code and generate the code again on to the same place.

Thanks.
Title: Re: Reverse and Forward Engineering: Is It BUG?
Post by: zalbina on January 28, 2013, 05:44:21 pm
Did not nobody try to do it  :'(?
Title: Re: Reverse and Forward Engineering: Is It BUG?
Post by: Doug Blake on January 28, 2013, 08:08:26 pm
Not everybody works their weekends, work - life balance and all!!
Title: Re: Reverse and Forward Engineering: Is It BUG?
Post by: zalbina on January 28, 2013, 11:25:02 pm
OK. What does it mean for my company when the code just disappear by this forward and reverse engineering?

Some explanations, please.
Title: Re: Reverse and Forward Engineering: Is It BUG?
Post by: qwerty on January 29, 2013, 12:22:54 am
I think that only your company can judge what it means to them.

q.
Title: Re: Reverse and Forward Engineering: Is It BUG?
Post by: Eve on January 29, 2013, 08:49:58 am
By default EA doesn't reverse engineer method bodies or overwrite existing ones when generating.

Turn on the reverse engineering option on the Attribute/Operations page of the options dialog and you'll be fine.
Title: Re: Reverse and Forward Engineering: Is It a BUG?
Post by: zalbina on January 29, 2013, 06:44:28 pm
100%. Thank you very much.