Getting UnsupportedOperation when adding stop and/or end to case

0 votes
asked May 14, 2021 in Bug by Graham

I have simplified the drawing to:

@startuml Call Policy Set 4
start
title Number Analysis
switch (source)

case ( a )
:case1;

case ( b )
:case2;
end

case ( c )
:case3;

endswitch
@enduml

If the stop is moved to either the first or last branch the the drawing is rendered correctly. The same occurs if stop is replaced as end.

The exception thrown is:

PlantUML DiagramPlantUML DiagramI have tried this in release 1.2021.00, 1.2021.5 and 1.2021.6b6

commented May 14, 2021 by albert (3,520 points)

Interesting. I played a bit with the switch and the following

@startuml
start
title Number Analysis
switch (source)

case ( a )
:case1;
'end

case ( b0 )
:case20;
'end

case ( b1 )
:case21;
'end
case ( b2 )
:case22;
'end

case ( c )
:case3;
end

endswitch
@enduml

it does render, but see on the right side of the image hat the case22 is not going to the diamond anymore as it probably relies the horizontal line to be present

commented May 15, 2021 by albert (3,520 points)
Looks that the problem as reported by Graham is solved at least on the plantuml webserver (1.2021.7beta1) it looks OK (http://www.plantuml.com/plantuml/uml/FSxD2i9030JWUvvYZktHdvEzLBoBu1EaCU12si8cY_JjNItjRVWcXEazE4SP3JSsmsEs90kU6ZZJlw98OOfx6GVDk4viYoSd_wIGDngVInPjYOHTqO3HqkMN3zrkmsR7ZdHwxIwRd-fjBTQVrDTO1tq1)

The problem I mentioned in the comment i.e. a horizontal line missing from  case22 to the diamond is still present

1 Answer

0 votes
answered May 26, 2021 by The-Lu (63,920 points)

Hello G., A., and all,

The first case is corrected on V1.2021.7 (23 May, 2021).

I can open a specific case for the second case.

Thanks PlantUML for your works,
Regards,
Th.

...