Structs do not function properly within a namespace

0 votes
asked Aug 22, 2022 in Bug by anonymous
When a struct is contained within a namespace, it cannot form connections with other objects, or be referenced directly in any way. An Identical class will function perfectly fine in the same situation.

1 Answer

0 votes
answered Aug 22, 2022 by plantuml (295,000 points)
Thanks for the report.

It would help if you provide a short example that shows the issue.

Regards,
commented Jan 13, 2023 by Tim

Just ran into this myself.

Example below misbehaves as described:

@startuml
namespace Namespace {
    struct Foo {}
    class Bar {}
}
Namespace.Foo *-- Namespace.Bar
@enduml
commented Jan 14, 2023 by The-Lu (65,440 points)

Adding...

It seems OK for:

  • abstract
  • annotation
  • class
  • enum
  • interface

But KO for:

  • circle
  • diamond
  • entity
  • exception
  • protocol
  • struct

Regards.

...