You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/12 00:10:27 UTC
[jira] [Closed] (TAP5-170) Basic generics support should apply to
parameters of event handler methods as well as getters and setters
[ https://issues.apache.org/jira/browse/TAP5-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Massimo Lusetti closed TAP5-170.
--------------------------------
Resolution: Won't Fix
Fix Version/s: 5.3
Please open a new one for 5.3 if this still applicable
> Basic generics support should apply to parameters of event handler methods as well as getters and setters
> ---------------------------------------------------------------------------------------------------------
>
> Key: TAP5-170
> URL: https://issues.apache.org/jira/browse/TAP5-170
> Project: Tapestry 5
> Issue Type: Improvement
> Affects Versions: 5.0.15
> Reporter: Howard M. Lewis Ship
> Fix For: 5.3
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira