Cannot remove reuse if same concern is reused elsewhere in concern

Issue #445 resolved
Matthias Schoettle created an issue

Consider a reuse of Singleton in feature A of concern C and another reuse in feature B. Both features having a design model with a corresponding model reuse. Both reuses have the same name ("Singleton").

If I remove the model reuse in A and then try to remove the reuse as well, I get an error telling me that it cannot be removed.

Comments (3)

  1. Matthias Schoettle reporter

    The problem seems to be the check in COREModelUtil.getModelReuses:

    if (EcoreUtil.equals(modelReuse.getReuse(), coreReuse)) {

    Also, all models are checked, not just the ones realizing the feature.

  2. Log in to comment