Possibly :: notation bug

0 votes
asked Nov 19, 2012 in Closed bug by anonymous
retagged Nov 19, 2012 by plantuml

There is a difference betwen:

class A::B::C {

    f()

    x

}

and

class "A::B::C" {

    f()

    x

}

http://www.plantuml.com/plantuml/img/Iyv9B2vMK7AqidAoid9MKgZcvL98qz04aXMyNBK0
http://www.plantuml.com/plantuml/img/Iyv9B2vMSBIoShAoSbQevkLIIDFG198Ll5or0000

I want to use "::" without creating any packages at all. In Perl "::" doesn't represent packages.

1 Answer

+1 vote
answered Nov 19, 2012 by plantuml (294,960 points)

Yes, you are right : it's a bug.

As temporary workaroud, you can use:

class "A::B::C" as A_B_C {
    f()
    x
}

 

The parser code need some serious refactor here.

I think also we may remove the feature that automatically creates package when class names have dot (.) or :: in their declaration. Not sure that it is a really good/usefull feature

commented Nov 19, 2012 by pushtaev (100 points)
Is it possible to remove it? I created some UMLs two weeks ago and they show strange behavior now :)
commented Nov 19, 2012 by plantuml (294,960 points)
edited Nov 20, 2012 by plantuml
...