Skip to content

Commit 3067dd1

Browse files
authored
Merge pull request #81 from useocl/fix_operationcall
fix: handling of result values for operation calls
2 parents 62850ef + ff27827 commit 3067dd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

use-core/src/main/java/org/tzi/use/uml/ocl/expr/ExpInstanceConstructor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public Value eval(EvalContext ctx) {
8383

8484
MOperationCall operationCall = new MOperationCall(this, self, constructor, arguments);
8585
operationCall.setPreferredPPCHandler(ExpressionPPCHandler.getDefaultOutputHandler());
86+
operationCall.setResultValue(result);
8687

8788
MSystem system = ctx.postState().system();
8889
try {
@@ -93,7 +94,7 @@ public Value eval(EvalContext ctx) {
9394
} finally {
9495
try {
9596
if (operationCall.enteredSuccessfully()) {
96-
system.exitQueryOperation(ctx, result);
97+
system.exitQueryOperation(ctx);
9798
}
9899
} catch (MSystemException ignored) {
99100
}

0 commit comments

Comments
 (0)