[Uml-devel] [Bug 140669] Java 5 generics support

Antoine Dopffer adopffer at nerdshack.com
Sun Mar 4 22:25:11 UTC 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=140669         




------- Additional Comments From adopffer nerdshack com  2007-03-04 23:25 -------
The problem is identical in C++.
If you import a class with an attribut of type QList<SimpleBean>, Umbrello doesn't draw any association.

But IMHO the problem isn't with the import.
You can design a class ComplexBean in Umbrello with a attribut of type List<SimpleBean>. The aggregation isn't drawn.

Perhaps the problem is with the function UMLView::createAutoAttributeAssociations that doesn't handle such a case.
As you said, List<SimpleBean> is identified as a new data type.

A quick and dirty hack could update this function.
When the attribute type matches the pattern A<B>, the updated function may look for types B in the current diagram instead of looking for A<B> in the current diagram.

Is this solution OK ?




More information about the umbrello-devel mailing list