Java Exception in Activity if conditional

0 votes
asked Sep 24, 2014 in To be sorted by nikoapos (120 points)

In an Activity diagram, when an if-conditional contains an elseif and the else path is terminated with a stop, there is an Exception thrown. Example:

@startuml
start
if (condition A) then (yes)
  :Text 1;
elseif (condition B) then (yes)
  :Text 2;
else (nothing)
  :Text else;
  ' This is the stop causing the problem
  stop
endif
stop
@enduml
 
Note that if the conditional does not contain an elsif element, then everything works as expected:
 
 @startuml
start
if (condition A) then (yes)
  :Text 1;
else (nothing)
  :Text else;
  ' This works fine
  stop
endif
stop
@enduml

1 Answer

0 votes
answered Sep 24, 2014 by plantuml (295,760 points)
selected Sep 24, 2014 by nikoapos
 
Best answer

Hello,

Thanks for your report.

Which version are you using ?
@startuml
version
@enduml

This should have been fixed with 8007 release.

commented Sep 24, 2014 by nikoapos (120 points)
Yes. You are right. I have test this with the online demo server, which runs 8004. With the Eclipse 8007 plugin it works correctly. Sorry for that.
commented Sep 24, 2014 by plantuml (295,760 points)
Don't be sorry : we are sorry that the online demo server is not up-to-date yet.
The new versions rate is so high that we cannot update our own site :-)
We are always interested in bug report!
Thanks again,
...