Vertical IF composition bug

0 votes
asked Dec 9, 2019 in Bug by Anatolii
Hello!

Thank you for excellent solution PlantUML!

I found, as I guess, some bug.

Below i reproduced this.

It generates error.

But if we remove "!pragma useVerticalIf on" then all is ok.

Hope this helps you to improve PlantUml!

P.S. exception handler and (E) connector - my original solution for exception handling in PlantUML :)

@startuml diagram

!pragma useVerticalIf on

start

floating note right: Procedure DOC_XML

partition "block" {

:do1;

WHILE (cond2) is (**loop**)

IF (cond3) THEN (**yes**)

:do4;

WHILE (cond5) is (**loop**)

IF (cond6) THEN (**yes**)

:do7;

ELSEIF (cond8) THEN (**yes**)

:do9;

ENDIF

ENDWHILE (**end**)

:do10;

ENDIF

IF (cond11) THEN (**yes**)

:do12;

break

ENDIF

ENDWHILE (**end**)

:do13;

(E)

detach

partition "Exception handler for others" #Salmon {

:do15;

}

(E)

}

stop

@enduml

1 Answer

0 votes
answered Dec 9, 2019 by plantuml (295,000 points)
Thanks for the feedback.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you.
commented Dec 11, 2019 by anonymous
Thank you very mutch for lightning reaction!
...