Skip to content

Commit 332bdfd

Browse files
committed
Corrected the removal of a waiting acceptor that has been accepted (OMG
Urgent Issue fUML13-12).
1 parent f8e84ab commit 332bdfd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

org.modeldriven.fuml/src/main/java/fUML/Semantics/CommonBehaviors/Communications/ObjectActivation.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ public void dispatchNextEvent() {
105105
int j = ((ChoiceStrategy) this.object.locus.factory
106106
.getStrategy("choice"))
107107
.choose(matchingEventAccepterIndexes.size());
108+
int k = matchingEventAccepterIndexes.getValue(j - 1);
108109
EventAccepter selectedEventAccepter = this.waitingEventAccepters
109-
.getValue(matchingEventAccepterIndexes.getValue(j - 1));
110-
this.waitingEventAccepters.removeValue(j - 1);
110+
.getValue(k);
111+
this.waitingEventAccepters.removeValue(k);
111112
selectedEventAccepter.accept(eventOccurrence);
112113
}
113114
}

0 commit comments

Comments
 (0)