IllegalArgumentException when note's name is already known in a package diagram

0 votes
asked Apr 8, 2015 in bug by Pierre.Sassoulas (370 points)
Hello,

With this file :

@startuml
    package a {
        note "my note" as M
    }

    package b {
        note "my other note" as M
    }
@enduml

I get :

java.lang.IllegalArgumentException: Already known: M(null)
    at net.sourceforge.plantuml.cucadiagram.CucaDiagram.createLeaf(CucaDiagram.java:121)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand.executeInternal(FactoryNoteCommand.java:111)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand.access$0(FactoryNoteCommand.java:108)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand$1.executeArg(FactoryNoteCommand.java:82)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand$1.executeArg(FactoryNoteCommand.java:1)
    at net.sourceforge.plantuml.command.SingleLineCommand2.execute(SingleLineCommand2.java:102)
    at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:54)
    at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:110)
    at net.sourceforge.plantuml.command.UmlDiagramFactory.executeOneLine(UmlDiagramFactory.java:134)
    at net.sourceforge.plantuml.command.UmlDiagramFactory.createSystem(UmlDiagramFactory.java:102)
    at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:99)
    at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:91)
    at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:129)
    at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:394)
    at net.sourceforge.plantuml.Run.processArgs(Run.java:316)
    at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:291)
    at net.sourceforge.plantuml.Run.main(Run.java:135)
Error java.lang.IllegalArgumentException: Already known: M(null)
You should send a mail to plantuml@gmail.com with this log (V8022beta9)

Regards,

1 Answer

+1 vote
answered Apr 20, 2015 by plantuml (134,510 points)
selected Apr 20, 2015 by Pierre.Sassoulas
 
Best answer
This has been fixed in V8023.

Thanks again!
...