Using <-> in a simple component diagram yields weird results. Using the long arrow version <--> or longer does work as intended.
Tested using PlantUML Web Server [PlantUML Server 20130918 / version 1201719]
Example 1 - Basic
For instance, this code :
@startuml [Component 1] <-> bar_interface @enduml |
results in :
Whereas the long arrow version :
@startuml [Component 1] <--> bar_interface @enduml |
Works correctly :
Example 2 - with a grouping component
The behavior differs a bit with grouping components.
@startuml node "foo" [Component 1] <-> bar_interface @enduml |
Results in :
The long arrow version also works as intended