Skip to content

Actual_Connection_Binding is not overridden by contained property association #2265

@lwrage

Description

@lwrage

Summary

After fixing the exception from #2259 the instantiation appends local and local contained property associations.

Expected and Current Behavior

The local property association should be overridden by the local contained one.

Steps to Reproduce

  1. Instantiate top.i
  2. In the instance model the connection binding is (theBus1, theBus2) instead of (thebus2)
package Issue2265
public
	bus MyBus
	end MyBus;

	system S1
		features
			out1: out data port;
	end S1;

	system S2
		features
			in1: in data port;
	end S2;

	-- assembled system
	system top
	end top;

	system implementation top.i
		subcomponents
			sub1: system s1;
			sub2: system s2;
			theBus1: bus MyBus;
			theBus2: bus MyBus;
			a: abstract {
				Source_Language => (C);
			};
		connections
			conn1: port sub1.out1 -> sub2.in1 {
				Actual_Connection_Binding => (reference (theBus1));
			};
		properties
			Actual_Connection_Binding => (reference (theBus2)) applies to conn1;
			Source_Language => (Ada95) applies to a;
	end top.i;
end Issue2265;

Environment

  • OSATE Version: 2.7.0
  • Operating System:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions