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

Antoine Dopffer adopffer at nerdshack.com
Sun Feb 18 06:10:45 UTC 2007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From adopffer nerdshack com  2007-02-18 07:10 -------
Created an attachment (id=19724)
 --> (http://bugs.kde.org/attachment.cgi?id=19724&action=view)
patch for #53374

This patch succeeds (I hope so) to handle java interface and java abstract
I think we could also wish to generate the methods of a interface that a class
should implement.

The work for handling generics is not quite finished.
Only the generic classes work.
In java, you can have generic classes but also generic methods.
For example, the class A is generic and the method returnMe is also generic:
class A<T> 
private T param;
public T getParam() {return param;}
public void setParam(T p) {param = p;}
public static  <Y> Y returnMe (Y p) { return p;}

Ok, this class is dumb.
But I couldn't manage to design a generic methods with umbrello (I don't even
know if generics methods are part of the UML specifications) so I couldn't
update the java generator for handling generic method.

I hope it can help anyway

Have a nice day !
PS : According to me, the new java code generator (javacodegenerator.cpp)
managed the interfaces and the abstract classes

More information about the umbrello-devel mailing list