Braces in a class diagram note cause syntax errors

0 votes
asked Aug 17, 2015 in Bug by Fuhrmanator (1,700 points)
In class diagrams, PlantUML's parser seems to get lost when notes contain braces at the start of a line:
 
class A
note right of A
if (a) {
  return b;
} else {
return c;
}
end note
 
 
However, it's working well with Sequence diagrams:
 
A -> B :hello
note right of A
if (a) {
  return b;
} else {
return c;
}
end note

1 Answer

0 votes
answered Aug 18, 2015 by plantuml (294,960 points)
selected Feb 22, 2016 by Fuhrmanator
 
Best answer
Thanks for the feedback.

The beta version https://dl.dropboxusercontent.com/u/13064071/plantuml.jar should fix this.

The correction will be included in next release.

Thanks again!
...