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 constructor handling in UML -> Java reactions can lead to invalid Java code #127

Open
JanWittler opened this issue Feb 15, 2021 · 0 comments
Labels
Java Related to Java Applications or Java Domain UML Related to UML Applications or UML Domain

Comments

@JanWittler
Copy link
Contributor

Currently, we map operations in UML to constructors in Java if their name matches the name of the containing class, otherwise a Java class method is created. However, if later on such an UML method is renamed or made static, we do not check whether the corresponding java object is a constructor but perform the changes anyways. If the corresponding Java object was a constructor, this change will lead to an invalid state of the Java source file.

I know that this is just an edge case which will only occur rarely - if at all - but it should be documented anyways.

@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

1 participant