Skip to content

Rename refactoring misses a reference #2262

@lwrage

Description

@lwrage

Summary

There is a case where renaming a subcomponent does not rename a reference to this subcomponent in a property association.

Expected and Current Behavior

The model below has two references to bus subcomponent theBus. When renaming theBus to, for example, theBus1, it is renamed in the properties section but not in the property association at connection conni. Both should be renamed.

Note that highlighting references works.

Steps to Reproduce

  1. Load the following mode
  2. Use rename refactoring on theBus in top.i
package Issue2259
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;
			theBus: bus MyBus;
		connections
			conn1: port sub1.out1 -> sub2.in1 {
				Actual_Connection_Binding => (reference (theBus));
			};
		properties
			-- Bind the connections
			Actual_Connection_Binding => (reference (theBus)) applies to conn1;
	end top.i;
end Issue2259;

Environment

  • OSATE Version: 2.7.0
  • Operating System: all

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions