Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Abandoned
-
5.0.15
-
None
-
None
-
None
Description
The current support for JDK Generics only applies to getter and setter methods.
It would be very useful, for the same use cases where getters and setters are useful, to allow generics inside event handler methods.
I.e.:
public class GenericCRUD<T>
{
private T _entity;
public T getEntity()
{ return _entity; }public void setEntity(T entity) { _entity = entity; }
T onPassivate() { return _entity; }
void onActivate(T entity)
{ _entity = entity; }}
This would require integrating the basic generic support directly into ComponentClassTransformation.