[Uml-devel] [Bug 53374] Java interface inheritance, abstract classes and generics in code generation

Oliver Kellogg okellogg at users.sourceforge.net
Wed Feb 21 18:19:17 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=53374         




------- Additional Comments From okellogg users sourceforge net  2007-02-21 19:19 -------
SVN commit 636032 by okellogg:

writeClassDecl(): Attachment 19771 from Antoine Dopffer adds "extends"
 for a generic formal parameter that is not of type Object. Cool!
CCBUG:53374


 M  +4 -0      javawriter.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/javawriter.cpp #636031:636032
 @ -297,6 +297,10  @
         for (UMLTemplate *t = template_params.first(); t; ) {
             QString formalName = t->getName();
             java <<  formalName;
+            QString typeName = t->getTypeName();
+            if (typeName != "class") {
+                java << " extends " << typeName;
+            }
             if ((t = template_params.next()) != NULL)
                 java << ", ";
         }




More information about the umbrello-devel mailing list