osate / osate-ge

Old Graphical editor for OSATE repository, kept for reference
6 stars 3 forks source link

Adding mode to component type also adds it to implementation (sometimes) #167

Closed lwrage closed 7 years ago

lwrage commented 8 years ago

In the last AADL course someone added a mode to a system type using the graphical editor. In the AADL text this mode was added to the component type AND the component implementation resulting in an invalid model. (OSATE 2.2.1 vfinal)

philip-alldredge commented 8 years ago

Is there a way to reproduce this? I haven't seen anything like this before and I am unable to reproduce the issue.

lwrage commented 8 years ago

No, it only happened on one machine, but it was reproducible there. I think the user then closed and re-opened the graphical editor to get correct behavior back.

philip-alldredge commented 8 years ago

After a review of the source, the cause of the issue is not immediately apparent. The graphical editor just calls createOwnedMode() on the classifier when creating a mode.

As much as I would like to get to the bottom of this, it will not be fixable unless it can be reproduced. Recommend closing until it can be reproduced.

On a related note, the editor should probably stop the user from creating a mode in a component implementation if the type has modes. I have created a separate issue #168 to track that enhancement.

philip-alldredge commented 7 years ago

Closing since we are unable to reproduce the issue.