Closed reteprelief closed 8 years ago
I agree that this does not make sense for connections, but I would say the examples are wrong and the property association should be in the properties section of the component that contains the connection declaration.
Otherwise we need a rule for the standard that states how exactly this is supposed to work: There are now two cases
Did instantiation work correctly with such a property association? I am pretty sure that I never considered such a property association as valid AADL.
I started changing some of the examples in GitExamples that are affected to move the binding proeprty from {} to the applies to clause. Just thought to raise it as an issue in case other people run into the same problem. We should have an area where people can find out about this kind of stuff.
Fixed a while ago
We can have properties directly associated with connections by declaring them inside {} The reference points to a subcomponent within the component for which the connection is declared, but it now is unresolved. It used to work. The problem is that when we changed the reference resolution we only looked at the subcomponent case. In that case we interpret the applies to and the reference the same way, i.e., we start with the classifier of the subcomponent. That does not make sense for connections. See example https://github.com/osate/examples/blob/master/core-examples/misc/latency.aadl or fanout.aadl. There are a number of other examples that broke because of that as well.