JetUML
                                
                                 JetUML copied to clipboard
                                
                                    JetUML copied to clipboard
                            
                            
                            
                        Endless loop when drawing class diagrams with interleaved control-flow
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.

Steps to reproduce
- Create the sequence diagram above
- Select the Call Edge tool
- Drag a new call edge from the call node on Bto the lifeline ofC
- 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.
Fixed indirectly through the better design implemented with issue #470