Associations and realizations of elements with namespaces

0 votes
asked Nov 26, 2019 in Bug by TT (140 points)

In V1.2019.6, the A and B code output the same class diagram.
However, in V1.2019.12, the B code does not output the same class diagram.
I hope that the future version will output the same class diagram as V1.2019.6 from the B code.
Because I think that it is easy to read if associations and realizations are written near the source elements.

A:

@startuml
namespace A {
  class Foo {}
  class Bar {}
}

namespace A.B {
  interface Baz {}
  class Qux {}
}

A.Bar ..|> A.B.Baz
A.Foo ..|> A.B.Baz
A.B.Qux --> A.B.Baz
@enduml

B:

@startuml
namespace A {
  class Foo {}
  Foo ..|> A.B.Baz

  class Bar {}
  Bar ..|> A.B.Baz
}

namespace A.B {
  interface Baz {}
  class Qux {}
  Qux --> Baz
}
@enduml

Thank you very much for the useful tool!

1 Answer

+1 vote
answered Nov 26, 2019 by plantuml (295,000 points)
Hi,

Thanks for the feedback, this is indeed a bug.

The internal Java code about namespace and package is very complex, and this is the cause of this bug.

We are currently thinking about deeply refactoring all this internal code (see http://alphadoc.plantuml.com/doc/asciidoc/en/poll-about-package-and-namespace )

So we will solve this issue in the future, probably at the beginning of 2020, because we need to finish our refactoring first.

We'll post a message here when this will be ready.

Hope this is fine for you !
commented Nov 27, 2019 by TT (140 points)
Thank you for the response.
I'm fine with your suggestion.

Thank you again for the useful tool.
...