JetUML icon indicating copy to clipboard operation
JetUML copied to clipboard

Endless loop when drawing class diagrams with interleaved control-flow

Open prmr opened this issue 3 years ago • 0 comments

Description Attempting to create a sequence diagram where a call to a constructor is followed to a call to the same object after a call to another object leads to an endless loop.

image

Steps to reproduce

  1. Create the sequence diagram above
  2. Select the Call Edge tool
  3. Drag a new call edge from the call node on B to the lifeline of C
  4. The diagram disappears and the tools enters an unstable state.

Configuration

  • JetUML Release: 3.3
  • OS + version: All
  • Java version: All

Additional information The issue is located in CallNodeViewer. The error is that the code to compute the y-position of the new call node requires to detect the max Y position of any call node of this implicit parameter, but this check includes the current call node, which triggers the endless loop.

prmr avatar May 10 '22 20:05 prmr

Fixed indirectly through the better design implemented with issue #470

prmr avatar Aug 11 '22 18:08 prmr