On Fri, Mar 27, 2009 at 8:40 AM, Alexander Lepekhine <[email protected]> wrote:
> It's a good idea. But if it's you who change the interface I think _you_ 
> should find all
> classes which implemented it and add an empty method there so they will at 
> least compile.

It's not possible to do this because you don't know who has
implemented the API.  The whole point of having a stable API is to
protect people's investment in extension modules.  That means it needs
to not only be source compatible, but binary compatible as well.

There are well known methods for doing this without breaking things.
You need to define a new interface

  CodeGenerator2 extends CodeGenerator {
      boolean superSpecialClassFilter();
  }

And then have the caller conditionalize its behavior based on whether
it's a new-style or old-style module.

But I still think it could be done without changing the API...

Tom

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=1443384

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to