Some initial letters of classes are ignored at undirected connections

0 votes
asked Apr 13 in Bug by MichaelM
When defining a undirected connection (ending with an '-' without arrow) like aFoo--aBar (no blank before aBar) this does not work for initial letters d, l, r, u at the Bar element, e.g. dFoo--dBar.

The 'd' of 'dBar' is being ignored. The connections is rendered like dFoo--Bar. The result is a wrong name of the element in the diagram.

When explicitely defining class dBar before, the results of the effect become even worse: Now two elements are generated in the diagram, an unconnected 'dBar' and a connected 'Bar'.

The effect has maximum impact, if there are connections to (intended) different classes dBar, lBar, rBar, uBar. These will then all lead to a class named Bar.

I can get around this by inserting a blank between the connection and the Bar element, but nevertheless this seems like a severe bug to me, in particular in more complex diagrams.

@startuml

class aFoo
class aBar
aFoo--aBar :ok

class dFoo
class dBar
class lFoo
class lBar
class rFoo
class rBar
class uFoo
class uBar

dFoo--dBar :nok
lFoo--lBar :nok
rFoo--rBar :nok
uFoo--uBar :nok

@enduml
commented Apr 13 by The-Lu (45,860 points)

Hello M.,

In fact that is a side effect of oriented arrow (direction), as:

@startuml
class aFoo
class aBar
aFoo--aBar :ok

class dFoo
class lFoo
class rFoo
class uFoo

dFoo --d Bar :down
lFoo --l Bar :left
rFoo --r Bar :right
uFoo --u Bar :up
@enduml

Then here are some workarounds:

  • use space after undirected arrow,
  • or don't use special char (used for oriented arrows): r, l, u, d 

If that can help,
Regards.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...