Hi!
As per the answer to the question about links to class members, you can use
Foo::field1 --> Bar::field3 : foo
to make associations between fields of a class. This works great. However, I now had reason to want an association-class with such a link (I might be abusing UML/PlantUML now) but the documented way with parenthesis does not work with such links.
As a minimal non-working example I modified the association class example from the documentation:
@startuml
class Student {
Name
}
Student::Name "0..*" - "1..*" Course
(Student::Name, Course) .. Enrollment
class Enrollment {
drop()
cancel()
}
@enduml
The link itself works as expected (if I comment out the next line) but the attempt at an association class is a syntax error. I tried to put quotes around the offending part but that did not help.
(Note that I am fully aware that, in this example, it makes no semantic sense to want a link between a Student::Name and a Course. As I said, I just tweaked the example from the manual as a minimal demonstration of the issue)
Can this be made to work ?