Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ErrorModelScopeProvider using wrong scope for element references #114
I am encountering problems serializing a programmatically created model that I believe are due to errors in ErrorModelScopeProvider.xtend.
In ErrorModelScopeProvider.xtend on lines 347 and 348, it establishes the scope to use when serializing a reference to a subcomponent state, for example, a subcomponent state in a composite error behavior state.
It declares the scope for this is the subcomponents of the referenced subcomponent's component classifier. This appears to be wrong. The scope should be the subcomponents of the component implementation that contains the composite error behavior.
Similarly, in ErrorModelScopeProvider on line 237, it establishes the scope to use when serializing a reference in an error behavior state machine transition.
It declares the scope as all of the events in the error behavior state machine. This is incomplete, This scope should also include the error types used by the error behavior state machine.
Here, the transition condition uses an error type. I believe this is valid, it doesn't give any errors in the OSATE editor.