What's wrong with this code? (Nested packages and classes)

0 votes
asked Mar 18 in Question / help by lockywolf
I have the following code:

package "Level0" as l0 {

   package "Level11" as l11 {

   package "Level12" as l12 {
      class Level3 as l3 {

The code doesn't compile, and the error is rather cryptic, the compiler complains about:

"class Level3 as l3 {"

What's wrong with this diagram? I have seen package diagrams with classes inside.

1 Answer

+1 vote
answered Mar 18 by plantuml (198,400 points)
commented Mar 19 by lockywolf
So, is it true that packages can be on both class AND component diagrams? But components can't be together?

I am quite confused about this. Is is against UML 2.3? I am confused. Where can I check which elements are permitted where?

Also, would it be appropriate to create a feature request to improve the error message?