Class diagrams: Method to method arrow sometimes points to the wrong method

0 votes
asked Sep 19, 2019 in Bug by Quinn
In a class diagram, when you point to a specific method and the method being pointed to has a separator underneath it, the arrow points to the wrong method. It seems like there are other specific requirements to reproduce this but I'm having trouble pinning them down precisely.

Here's an example of this behavior. The arrow should point from table2::foreignkey to table2::id. However, it points to table2::other_id instead.

Thanks!

Code to reproduce is below

@startuml

class table1 {
    id
    --
    other_id
    ..
    honkhonk
}

class table2 {
    id
    --
    foreignkey
    ..
    beepboop
}

table2::foreignkey --> table1::id

@enduml
commented Nov 13, 2019 by poi (1,200 points)
I fail to find documentation on this "method to method  arrow" feature. This question is the first time I learn about it. Where did you learn about this feature?

/poi
commented Dec 2, 2019 by Quinn
Hmm I guess it's a beta feature still maybe? It's mentioned in a few responses elsewhere in this forum, but you're right, I don't see official docs mention it either!

Links to other answers related to this:

https://forum.plantuml.net/5835/please-provide-notes-methods-with-parameters-return-values

https://forum.plantuml.net/5261/please-allow-adding-edges-class-members-methods-complex-names

1 Answer

0 votes
answered Dec 5, 2019 by plantuml (294,960 points)
We are not 100% satisfied by the syntax (and by the implementation btw), that's why it's not officially released.

However, your example should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Thanks for the report!
commented Dec 5, 2019 by Quinn
Awesome, thank you! This feature is super exciting
...