Issue with code generation [message #1807912] |
Wed, 12 June 2019 04:22  |
Eclipse User |
|
|
|
Hello,
Using the C++ code generator, I obtain an error that looks like to a bug but I'm not sure about.
The use case is the following one:
I generate automatically a transition in a state machine from a sequence diagram. To keep a link between the transition and the sequence diagram which produces the transition, I created a stereotype applied on the transition which contains a Message as stereotype attribute.
When I generate the code, I want to generate the state machine of the class but the sequence diagram and the Message is useless fot that use case so I applied the Stereotype NoCodeGen (C_Cpp profile) on the package which contains the sequence diagram (and all owned elements).
Now, if I generate the code from this model, I obtain an error (see attached files : pop up and stack trace).
If I remove the message from the transition (so I break the link), the error doesn't occur.
To generate the code correctly, I have to close and open the model.
Seeing the error log, I suppose that the transformation chain try to access to the values of SendEvent and Receive Event elements of the Message.
I precise that the Message Occurence Specifications are stored in the same resource (MyModel.uml) than the other UML elements.
Could you help me with this issue?
Thanks.
Yoann.
Attachment: error_log.txt
(Size: 7.44KB, Downloaded 92 times)
Attachment: Error.PNG
(Size: 19.29KB, Downloaded 165 times)
|
|
|
|
|
|
Re: Issue with code generation [message #1808434 is a reply to message #1808433] |
Mon, 24 June 2019 10:48  |
Eclipse User |
|
|
|
Hi Ansgar,
Ok it's clearer. False alert for the code generator, sorry.
No exception was launched during the process I described so it's probably a bug. I workaround the issue by adding a delete command for the shadow references.
Regards.
Yoann.
|
|
|
Powered by
FUDForum. Page generated in 0.05450 seconds