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

Antoine Dopffer adopffer at nerdshack.com
Wed Feb 21 14:50:20 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 adopffer nerdshack com  2007-02-21 15:50 -------
Created an attachment (id=19771)
 --> (http://bugs.kde.org/attachment.cgi?id=19771&action=view)
patch for handling the case where a generic extends an existing class

Here comes a new patch that handles the case where the generics extends a type
that is not "Object" .
So we can have
class Foo<T extends Bar>
{
}
By default, a generic extends Object, so you can't have something really
interesting (see http://www.mindview.net/WebLog/log-0050)

So, if the user lets the type "class" when designing the template in umbrello,
the generated code will be:
class Foo<T> {...}
Il the user chooses another type, say "Bar", the generated code will be:
class Foo<T extends Bar> {...}

This patch completes but do not replace the previous one.
Thanks




More information about the umbrello-devel mailing list