plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.73k stars 881 forks source link

Error with certain diagram with java 21 #1591

Open xiaoshuw opened 6 months ago

xiaoshuw commented 6 months ago

I installed plantuml version 1.2023.12 via brew. Encountered the following error when try to generate image from the following diagram.

@startuml Universal Prompt
split
-[hidden]->
#blue:ONYEN; <<continuous>>
split again
-[hidden]->
#red:Guest ID; <<continuous>> 
end split
:Set Password; <<save>>
if (<color:red>Active Duo Account) then (no)
  note left 
    <color:red>Active Duo Account
    duo account assoicated with
    the <b>active</b> authenticator 

    <color:blue>Inactive Duo Account
    duo account assoicated with
    the <b>inactive</b> authenticator 
  end note
  if (<color:blue>Inactive Duo account) then (no)
  elseif (Move Device?) then (no)
      :Delete <color:blue>Inactive Duo Account;
    else (yes)
      :Rename <color:blue>Inactive</color> to <color:red>Active Duo Account;
      stop
 endif
 #pink:Duo Universal Prompt;
 end
else (yes)
  :Delete <color:blue>Inactive Duo Account <color:black>if any;
  stop
endif
@enduml

If I switch to a JDK 17 by using the jar directly, it seems O.K.

Here is the log for the errors.