Package cannot contain both a nested package and a component

0 votes
asked Jun 21, 2015 in Bug by anonymous

The following fragment generates a syntax error:

@startuml

package Package {
  [Component]
  package Nested {}
}
@enduml
 
However, if I comment out either the component or the nested package, it works. Is it not possible to mix packages and components withint a package?

1 Answer

0 votes
answered Jun 21, 2015 by plantuml (298,440 points)
 
Best answer

You should try this way:

@startuml
package Package {
  [Component]
  package Nested {
  }
}
@enduml

It looks like some parsing issue, we will fix this in a future release.

Is this what you are expecting ?

commented Jun 22, 2015 by anonymous
That's exactly what I was expecting. Thanks for the prompt reply!
...