Author Topic: Reverse engrng creates duplicate inherited methods  (Read 3274 times)

Brad Englund

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Reverse engrng creates duplicate inherited methods
« on: April 13, 2010, 06:02:13 am »


I have an (abstract) interface class that defines set operations for variables contained in a separate implementation class with a realize relationship from the implemenation class to the interface class. When generating C++ code for the classes, EA adds the inherited set methods from an abstract interface class to the implementation class's header and body files. This is what would be expected, and looks clean.

However, when changes are subsequently made to the implementation class’s code file, and reverse engineered from the code, EA adds the set operations to the implementation class. Now there are duplicate set operations (one set in the abstract interface class and one set in the implementation class) in the model. Is there a way to prevent this?

A picture would help, but being a newbie to EA's forum, it looks difficult to add an image to the post.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Reverse engrng creates duplicate inherited met
« Reply #1 on: April 13, 2010, 10:55:23 am »
No, EA is updating the model to reflect what is found in code, where those methods do exist.

Brad Englund

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Reverse engrng creates duplicate inherited met
« Reply #2 on: April 14, 2010, 12:23:54 am »
So, to avoid it, only code gen from the model in these cases.

Thanks.