Why does plus change from name of Map key to comment?

0 votes
asked Jul 25 in Bug by anonymous

Trying to make it so that I can have a public static element on a map. The first image is the intended way, with just needing to have a "+" on method1, but when I add it, it gets switched to a comment as in image 2 which I don't want.

PlantUML diagramPlantUML diagram

User::method3 --> Interface::__method1__

vs

User::method3 --> Interface::__+method1__

Thanks!

full plantuml:

@startuml
map User {
method3 => 
}
map Interface {
__method1__ => void
method2 => 
}
User::method3 --> Interface::__method1__
@enduml

2 Answers

0 votes
answered Jul 26 by The-Lu (48,920 points)

Hello A.,

A possible workaround is to double quote the destination of the link as:

@startuml
map User {
method3 => 
}
map Interface {
__+method1__ => void
method2 => 
}
User::method3 --> "Interface::__+method1__"
@enduml

Regards.

0 votes
answered Jul 27 by plantuml (278,240 points)

Thanks for the feedback, this has been fixed in last snapshot.

...