Skip to content

Behavior annex plugin throws an error if subprogram call action refers to something else than a subprogram classifier #2200

Description

@Etienne13

Summary

If a BA subclause contains a subprogram call action that refers to something else than a subprogram classifier (e.g. subprogram access or subprogram subcomponent) the plugin throws an error.

Steps to Reproduce

  1. create a package with the following example
  2. the BA plugin throws an error on subrogram access call
package BA_example1
public

data number
end number;

subprogram mul
features
  x : in parameter number;
  y : in parameter number;
  z : out parameter number;
end mul;

subprogram cube
features
  x : in parameter number;
  y : out parameter number;
  mul : requires subprogram access mul;
end cube;
subprogram implementation cube.ba
annex behavior_specification {**
  variables tmp : number;
  states s : initial final state;
  transitions t : s -[]-> s { mul!(x,x,tmp); mul!(tmp,x,y) };
**};
end cube.ba;

end BA_example1;

Environment

  • OSATE Version: 2.7.0
  • Operating System: Linux

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions