Skip to content

Commit 4a3e633

Browse files
committed
ST6RI-828 Cleared caches for inherited member distinguishability check.
- Avoids a possible spurious warning on the payload feature of a flow.
1 parent ee56abb commit 4a3e633

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

kerml/src/examples/Behavior Examples/TakePicture.kerml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ behavior TakePicture {
1111
step step1: Focus[1];
1212
step step2: Shoot[1];
1313

14-
succession flow exposure[1] from step1.xrsl to step2.xsf;
14+
succession flow exposure[1] of Exposure from step1.xrsl to step2.xsf;
1515

1616
succession step1 then camera.focusedState;
1717
succession step2 then camera.shotState;

org.omg.kerml.xtext/src/org/omg/kerml/xtext/validation/KerMLValidator.xtend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ class KerMLValidator extends AbstractKerMLValidator {
365365
checkDistinguishibility(mem, aliasMemberships, INVALID_NAMESPACE_DISTINGUISHABILITY_MSG_1)
366366
}
367367
if (namesp instanceof Type) {
368+
ElementUtil.clearCachesOf(namesp)
368369
val inheritedMemberships = namesp.inheritedMembership
369370
for (mem: ownedMemberships) {
370371
checkDistinguishibility(mem, inheritedMemberships, INVALID_NAMESPACE_DISTINGUISHABILITY_MSG_2)

sysml/src/examples/Camera Example/PictureTaking.sysml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package PictureTaking {
66

77
action takePicture {
88
action focus: Focus[1];
9-
flow focus.xrsl to shoot.xsf;
9+
flow of Exposure from focus.xrsl to shoot.xsf;
1010
action shoot: Shoot[1];
1111
}
1212
}

0 commit comments

Comments
 (0)