two objects with same name rendered only once

0 votes
asked May 3, 2023 in Bug by chrikoch (120 points)

I have the following plantuml code:

@startuml
rectangle "A" {
  rectangle "group" {
    rectangle "B"
  }
}

rectangle "C " {
  rectangle "group" {
    rectangle "D"
  }
}
@enduml

I'd expect to get two rectangles (A and C), both having a rectangle "group" inside of them, the "group" inside of A holding another rectangle B, and C having a rectangle "group" with another rectangle "D" inside.

But what I get is this, where D is inside the group of A

PlantUML diagram

Is this desired behaviour? When adding aliases for "group" everything works as expected:

@startuml
rectangle "A" {
  rectangle "group" as g1 {
    rectangle "B"
  }
}

rectangle "C " {
  rectangle "group" as g2 {
    rectangle "D"
  }
}
@enduml

 PlantUML diagram

I've used the online server to test this behaviour and created the pictures there.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...