Specifying association classes inside vs. outside of packages

0 votes
asked Oct 5, 2016 in Bug by JohannesMeier (460 points)

Hello,

I detected in class diagrams with association classes, that there is a difference where you define the association class (inside or outside of the package declaration):

 

http://www.plantuml.com/plantuml/uml/AqXCpavCJrN8p2lEJ4bLgEPIK4ZEIImkLd0qX3ET44ndGowWiAEXWgwk0bXOmz5G1yZILD1J0ChLSd4LG0tCBor1Dz48OIA2wMm4rELe13RGY4l3qGXed17OE2C0

Is this a bug?

1 Answer

+1 vote
answered Feb 2, 2018 by Anthony-Gaudino (5,720 points)
It's not a bug.

Order of declarations is important.

When you do an association like this, what PlantUML is doing is creating a black dot to connect the classes, if you put the association outside of the package, it creates the dot outside of the package.
...