UML Template/Generic text incorrect?
Submitted by mir..@..les.de
According to, e.g., the UML 2.5 specification, formal template parameters should be drawn as simply the paramter names in a dashed box on the corner of the template class. In particular, it indicates the format of these parameters like so:
<parameter-kind> ] [‘=’
That is, if there is only a template parameter name, no colon should be drawn.
Dia, however, will, upon entering something like
Name: T Type:
(i.e. empty string as a type), show "T :", which is neither standard-conformant, nor pretty, nor what readers of the diagrams expect as image-googling for "uml template class" makes it seem like no other tool writes unrestricted template parameters like that, with a trailing colon and nothing behind that.