You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The import generation performed by the UML -> Java reactions is untested code. Furthermore, an import is only added when a typed element's type is updated. This implies that imports are not updated when an element is deleted or moved.
Additionally, the import routine requires the typed element to be already inserted in its containingCompilationUnit, otherwise an IllegalStateException is thrown. This behaviour is counter-intuitive to the design of the reactions language as the execution order of reactions is by design not deterministic.
Note
I only checked roughly but it seems that the PCM -> Java import generation is untested too. In addition, the PCM -> Java reactions use helper methods declared in tools.vitruv.domains.java.util to manage imports, while the UML -> Java reactions use helper methods declared in tools.vitruv.applications.util.temporary.java.
The text was updated successfully, but these errors were encountered:
Since I have spent my whole Master’s Thesis up to now fixing bugs in untested, incomplete and buggy code in Vitruv & the applications, I vote against merging a change that is ‘untested, incomplete and assumes order of execution’.
it should be considered to completely disable the import generation until it is properly implemented.
The import generation performed by the UML -> Java reactions is untested code. Furthermore, an import is only added when a typed element's type is updated. This implies that imports are not updated when an element is deleted or moved.
Additionally, the import routine requires the typed element to be already inserted in its
containingCompilationUnit
, otherwise anIllegalStateException
is thrown. This behaviour is counter-intuitive to the design of the reactions language as the execution order of reactions is by design not deterministic.Note
I only checked roughly but it seems that the PCM -> Java import generation is untested too. In addition, the PCM -> Java reactions use helper methods declared in
tools.vitruv.domains.java.util
to manage imports, while the UML -> Java reactions use helper methods declared intools.vitruv.applications.util.temporary.java
.The text was updated successfully, but these errors were encountered: