Book a Demo

Author Topic: Inface-realize-dependency: No change propagation  (Read 6092 times)

johannesjakob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • hang loos
    • View Profile
Inface-realize-dependency: No change propagation
« on: August 07, 2007, 05:48:10 am »
I define an interface that is realized by a class .. (normal use case). If I now change the operation name in the interface, the corresponding operation name in the implementing class is not updated. Moreover, the changed name is copied as a new operation in the implementing class.

Is this a bug, or have I done a mistake???
« Last Edit: August 07, 2007, 05:49:48 am by johannesjakob »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Inface-realize-dependency: No change propagati
« Reply #1 on: August 07, 2007, 06:17:24 am »
The topic: [size=13]Generalization vs Realization  [/size] may provide some insight into whether your expectations are realistic or not...

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

johannesjakob

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • hang loos
    • View Profile
Re: Inface-realize-dependency: No change propagati
« Reply #2 on: August 07, 2007, 06:46:30 am »
Thanks a lot!

I should do more trial-and-error. ;-)
If you generate code (e.g. C#) you can see that the operations of the interfaces are generated in the "realizing" class. So, the information would be redundant, if I copy the operations from the interfaces to the class.

Thanks again,
bye JOE