Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Interface Realization and Generalization is sometimes not propagated to UML #173

Open
SofiaAnanieva opened this issue Nov 20, 2021 · 0 comments
Labels
Java Related to Java Applications or Java Domain UML Related to UML Applications or UML Domain

Comments

@SofiaAnanieva
Copy link

SofiaAnanieva commented Nov 20, 2021

When propagating changes into a Java model, in some cases, the interface realization and generalization elements are not correctly propagated to UML.
The propagation works when the referenced Java class (or interface) already has a corresponding UML element (i.e., their creation change has already been applied).
It does not work when the referenced Java class (or interface) does not yet have a corresponding UML element (i.e., their creation change will be executed later).

A simple reproducing example would be two Java classes A and C that both extend class B. Assuming the classes are parsed and their creation propagated in alphabetical order, the result will be that in UML the class C correctly extends B but class A incorrectly does not extend B.

A fix would be to let the reaction create a stub UML class (or interface) and add it as a correspondence to the referenced Java class (or interface) in cases where it does not exist yet.

@JanWittler JanWittler added Java Related to Java Applications or Java Domain UML Related to UML Applications or UML Domain labels Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Related to Java Applications or Java Domain UML Related to UML Applications or UML Domain
Projects
None yet
Development

No branches or pull requests

2 participants