Should the order between the 'note left of C1' and the 'class C1' statements matter?

0 votes
asked May 6, 2023 in Bug by poi (1,200 points)

This example from the pdf-guide (3.9 More on notes) throws an error, "Not known Object", with plantuml-1.2023.6beta5.jar

@startuml
class Foo
note left: On last defined class
note top of Object
In java, <size:18>every</size> <u>class</u>
<b>extends</b>
<i>this</i> one.
end note
note as N1
This note is <u>also</u>
<b><color:royalBlue>on several</color>
<s>words</s> lines
And this is hosted by <img:sourceforge.jpg>
end note
@enduml

The script below throws the same error (with plantuml-1.2023.6beta5.jar) but works as expected with plantuml-1.2023.0.jar

@startuml
    namespace P1 {
        note left of C1
            This is a note on C1
        end note
        class C1         
    }
@enduml

The script below produces the expected result with both plantuml-1.2023.6beta5.jar and plantuml-1.2023.0.jar

@startuml
    namespace P1 {
        class C1         

        note left of C1
            This is a note on C1
        end note
    }
@enduml

Thus the question: Should the order between the 'note left of C1' and the 'class C1' statement matter?

/poi

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.
...