Skip to content

In BA plugin, error with type checking of get/release resource behavior actions #2234

@Etienne13

Description

@Etienne13

Summary

When using a get/release resource behavior action (noted <! and >!), the plugin fails and produces the following error message:

type error for 'lock', 'subprogram classifier' expected, found 'requires data access'.

This is a recent regression.

Steps to Reproduce

  1. import the following model
  2. see the error message attached to the behavior actions (no error message should appear since the model is correct)
package issueGetReleaseResource
public
	
data d
end d;

subprogram spg
  features
	lock: requires data access d {Concurrency_Control_Protocol => Protected_Access;};
  annex behavior_specification {**
	STATES
		singleton: initial final state;
	TRANSITIONS
  		t: singleton -[]-> singleton
   		{
   			lock!<;
   			lock!>
  		};
**};
end spg;
	
end issueGetReleaseResource;

Environment

  • OSATE Version: 2.7.0
  • Operating System: Linux

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions