Message created at the wrong position in certain cases

Issue #248 resolved
Matthias Schoettle created an issue

There is at least one case where when creating a message between two existing lifelines that the retrieved index is wrong (too low).

Consider the following example:

Screen Shot 2014-12-03 at 15.49.22.png

The message will be created above yield() instead of below it.

This is because only the fragment before the to lifeline is considered, which is above. Calling getIndexAfter(...) will not find messages below if the fragment is not a send event.

Since getIndexAfter(...) was substantially improved recently I suggest only using the from lifeline to find the index after.

Comments (1)

  1. Log in to comment