You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/12/08 22:33:01 UTC
[jira] Resolved: (WICKET-3242) Component and some derived classes
lose the Model type information, not parameterized by type
[ https://issues.apache.org/jira/browse/WICKET-3242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-3242.
-----------------------------------
Resolution: Won't Fix
Assignee: Igor Vaynberg
> Component and some derived classes lose the Model type information, not parameterized by type
> ---------------------------------------------------------------------------------------------
>
> Key: WICKET-3242
> URL: https://issues.apache.org/jira/browse/WICKET-3242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5-M3
> Environment: All
> Reporter: Richard Emberson
> Assignee: Igor Vaynberg
>
> Component and some derived classes (like MarkupContainer) are not parameterized
> by the type of the Model. As a result, methods such as:
> getDefaultModelObject
> and
> getDefaultModel
> rather than being typed return Object and IModel<?>.
> Code that uses these methods must then ferret out the type which, IMHO,
> should not be the case.
> Please take advantage of the strong typing that generics provide in the Componet
> base classes. User code would be safer and cleaner if they did not have to
> have the instanceof tests and casts.
> Better to delay 1.5 than to only partially support parameterized types.
> Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.