Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Validator error for AGREE Enum assignment #124
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.
Note: changing the assign active_status = sub_test.active_status; to the following got rid of the validator error:
Duplicated in develop branch hash e9a3710.
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.