Skip to content

Commit bd2e562

Browse files
committed
ST6RI-884 Corrected implementation of Expression::modelLevelEvaluable.
1 parent 866ed2d commit bd2e562

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

org.omg.sysml/src/org/omg/sysml/delegate/invocation/Expression_modelLevelEvaluable_InvocationDelegate.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ public Object dynamicInvoke(InternalEObject target, EList<?> arguments) throws I
4848
EList<Feature> visited = (EList<Feature>) arguments.get(0);
4949

5050
List<Feature> parameters = TypeUtil.getAllParametersOf(self);
51-
if (!parameters.stream().allMatch(
52-
param->self.directionOf(param) == FeatureDirectionKind.IN &&
51+
Feature result = self.getResult();
52+
if (!parameters.stream().allMatch(param->
53+
(self.directionOf(param) == FeatureDirectionKind.IN || param == result) &&
54+
param.getOwnedFeature().isEmpty() &&
5355
FeatureUtil.getValuationFor(param) == null)) {
5456
return false;
5557
} else {

0 commit comments

Comments
 (0)