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
Summary
When a prototype that doesn't have an actual value supplied by a prototype binding is encountered during instantiation, OSATE uses the constraining classifier (if present) from the prototype declaration. However, if that classifier is provided in a refinement or substituted in a refinement, the instantiation does not use the refinement but only the original declartion.
Expected behavior
The classifier for instantiation should be taken from the refined prototype declaration.
Actual behavior
The classifier is taken from the original declaration
Steps To Reproduce
Pate the model below into the OSATE editor and save
Instantiate A.ix
Open the instance file and notice that the data subcomponent is an instance of DT instead of `DT.i
package Issue2839
public
data DT
end DT;
data implementation DT.i
end DT.i;
abstract A
end A;
abstract implementation A.i
prototypes
p: data DT;
subcomponents
d: data p;
end A.i;
abstract implementation A.ix extends A.i
prototypes
p: refined to data DT.i;
end A.ix;
end Issue2839;
Desktop (please complete the following information):
OSATE Version: 2.11
Operating System: Linux
The text was updated successfully, but these errors were encountered:
Summary
When a prototype that doesn't have an actual value supplied by a prototype binding is encountered during instantiation, OSATE uses the constraining classifier (if present) from the prototype declaration. However, if that classifier is provided in a refinement or substituted in a refinement, the instantiation does not use the refinement but only the original declartion.
Expected behavior
The classifier for instantiation should be taken from the refined prototype declaration.
Actual behavior
The classifier is taken from the original declaration
Steps To Reproduce
A.ix
DT
instead of `DT.iDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: