I use a script to generate package diagrams with hierarchical packages which may contain duplicated names but not in the same levels. e.g.:
@startuml
package A {
package B {
package C
}
package A
}
@enduml
I think, package A.A might be acceptable. But plantuml failed with this error: Thie element (A) is already defined.
I also try the following:
@startuml
folder A {
folder B {
folder C
}
folder A
}
@enduml
Then, plantuml failed with the same error. I tried namespace instead of folder, then failed with the same error.