problem with naming package

0 votes
asked Jun 2, 2015 in Bug by uwong15 (360 points)

I have 2 problems at this time.

  1. naming package without "{ }" :

    @startuml
    package a_$a #yellow
    package java.lang #white
    a_$a-->java.lang
    @enduml

    error :
    error1
     
  2. relation between package :

    @startuml
    package a_$a #yellow{
    }
    package java.lang #white
    a_$a-->java.lang
    @enduml

    error 2

i don't know why plantUML not suport symbol like "$".
whereas my java compiler not problem anything.

1 Answer

0 votes
answered Jun 3, 2015 by plantuml (200,200 points)

Thanks for the report.

There are indeed some issues with $ character.

We have fixed them in the last beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

With this beta, the following examples are working fine:

@startuml
package a_$a #yellow {}
package java.lang #white {}
a_$a --> dummy$2
@enduml



@startuml
package a_$a #yellow {
  package java.lang #white {
    class foo$1
  }
}
a_$a --> dummy$2
@enduml


About the bracket {} , unfortunatly, you have to use them when defining package.
Changing the parser would be too difficult : sorry about that.
 

commented Jun 4, 2015 by anonymous
i don't know why it's still no working for me on relation.
commented Jun 7, 2015 by plantuml (200,200 points)
Could you post a simple example that does not work ?

The following example on relation is working now:

http://plantuml.com/plantuml/png/AqXCpavCJrL8Z5T9L52kJCt9oIzNgEPIK2Y0IcGbbYNgvIJcfIiebsTabgI29HKKadCIYuiLqlBpLGo1_5gkMYwm2RgwTWeffRcvbIf60000

@startuml
package a_$a #yellow {
  package java.lang #white {
    class foo$1
  }
}
a_$a --> dummy$2
@enduml
...