[Issue 6211] Generics on Map not supported in Java notation

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.issues
Message-ID <[email protected]>
http://argouml.tigris.org/issues/show_bug.cgi?id=6211






------- Additional comments from [email protected] Wed Aug 10 10:00:17 -0700 2011 -------
Hi Michiel,
I talked with Bob and he referred me to section 5.30 of the UML spec.  It seems 
that generics are called "Parameterized Classes(Templates)" in UML. After 
reading through the spec, it looks like your original description of the mapping 
is correct, although I'm not sure why it would specify an Integer default value 
for a String parameter type.

In section 5.30.1 it says "A template may be a subclass of an ordinary class".  
I assume then that in my example you would have a parameterized subinterface of 
Map with the <String,String> generic binding, and the default value would be 
null for Strings.

Using the description in 5.30.3, my earlier map example would be represented 
like this (I think):

myMap:Map<String,String> = null

myMap => name
type (Classifier) => Map<String, String>
default-value => null

Mark

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=448&dsMessageId=2813973

To unsubscribe from this list, e-mail: [[email protected]].
Please do not reply to this mail. Instead, add your comments in the issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.