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

Missing validation for reserved thread ports #2652

Closed
lwrage opened this issue May 7, 2021 · 0 comments · Fixed by #2719
Closed

Missing validation for reserved thread ports #2652

lwrage opened this issue May 7, 2021 · 0 comments · Fixed by #2719
Assignees
Milestone

Comments

@lwrage
Copy link
Contributor

lwrage commented May 7, 2021

Summary

Threads have a couple of reserved ports: The Complete out event port, Error out event data port, Abort out event port, and Stop out event port are reserved, i.e., they must be declared of the specified port type. OSATE should validate that these ports are declared correctly, but doesn't.

See 5.4 (L3) in the AADL 2.2 standard.

Expected behavior
A port named complete should be valid only as an out event port, etc.

Actual behavior
There is no validation, e.g. complete can be declared as an in data port without an error in the model.

Steps To Reproduce

  1. Paste model below into the AADL text editor
package ReservedPorts
public

  thread Correct
    features
      complete: out event port;
      error: out event data port;
      abort: out event port;
      stop: out event port;
  end Correct;

  thread Invalid
    features
      -- there should be errors on each feature
      complete: in data port;
      error: in event port;
      abort: out event data port;
      stop: in event port;
  end Invalid;
  
end ReservedPorts;

Desktop (please complete the following information):

  • OSATE Version: 2.9.2
  • Operating System: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants