You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
In OSATE 2.3.2.vfinal version, when doing an assignment from a subcomponent feature of a datatype (e.g., Status_Type in the example below) that extends Enumeration_Type, to a local variable of the same type (e.g., active_status in the example below), the validator flags it as an error for the assignment (e.g., assign active_status = sub_test.active_status; in the example below), saying that the left side of the assignment is of Status_Type, while the right side of the assignment is of Enumeration_Type.
Code example:
data Enumeration_Type
properties
Data_Model::Data_Representation => Enum;
end Enumeration_Type;
data Status_Type extends Enumeration_Type
properties
Data_Model::Enumerators => ("INVALID",
"INPROGRESS", "COMPLETE");
end Status_Type ;
system test
annex agree{**
eq active_status: Status_Type;
};
end test;
system implementation test.impl
subcomponents
sub_test: system sub_test;
annex agree{**
assign active_status = sub_test.active_status;
**};
end test.impl;
system sub_test
features
active_status: out data port Status_Type;
end sub_test;
Note: changing the assign active_status = sub_test.active_status; to the following got rid of the validator error:
eq active_status2: Enumeration_Type = sub_test.active_status;
The text was updated successfully, but these errors were encountered:
The problem is that at AgreeJavaValidator.java:2696 the evaluation of type chases the type back to the type from which it was extended without regard to whether it is finding the primitive base type of an AADL subcomponent or whether the type is an enumeration type.
In OSATE 2.3.2.vfinal version, when doing an assignment from a subcomponent feature of a datatype (e.g., Status_Type in the example below) that extends Enumeration_Type, to a local variable of the same type (e.g., active_status in the example below), the validator flags it as an error for the assignment (e.g., assign active_status = sub_test.active_status; in the example below), saying that the left side of the assignment is of Status_Type, while the right side of the assignment is of Enumeration_Type.
Code example:
Note: changing the assign active_status = sub_test.active_status; to the following got rid of the validator error:
eq active_status2: Enumeration_Type = sub_test.active_status;
The text was updated successfully, but these errors were encountered: