Cannot remove reuse if same concern is reused elsewhere in concern
Issue #445
resolved
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)
-
reporter -
reporter - changed status to resolved
Resolved with commit core/79c7590.
-
reporter -
assigned issue to
-
assigned issue to
- Log in to comment
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.