Author Topic: Auto-progragate changes in inherited methods  (Read 2715 times)

Eric Parent

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Auto-progragate changes in inherited methods
« on: October 21, 2009, 01:48:40 am »
Hello,

Please consider adding an auto-propagation of changes / updates in the inherited methods of a super-class into its sub-class.

Thanks!

- Eric

 8-)

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Auto-progragate changes in inherited methods
« Reply #1 on: October 21, 2009, 03:42:30 am »
For the reasons already discussed (breaking contracts etc.), such feature should be optional anyway.
May be a better solution would be to have a kind of 'refactoring' feature, that allows to go to a specific operation in a base element, search for all occurrences in inheriting elements and commit to synchronize the signature with the base. Further this should allow to search for uses of the concerned operation as they are specified in any behavioral diagrams.

WBR
Günther

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8598
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Auto-propagate changes in inherited methods
« Reply #2 on: October 21, 2009, 12:40:20 pm »
Quote
For the reasons already discussed (breaking contracts etc.), such feature should be optional anyway.
May be a better solution would be to have a kind of 'refactoring' feature, that allows to go to a specific operation in a base element, search for all occurrences in inheriting elements and commit to synchronize the signature with the base. Further this should allow to search for uses of the concerned operation as they are specified in any behavioral diagrams.

WBR
Günther
I have long held that these kind of relationship related transformations should be specified as properties of the relationship.  Thus, the properties of the inheritance (such as: automatically add any new parent feature) should be specific to the relationship.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!