[
https://issues.apache.org/jira/browse/WICKET-3225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-3225.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5-M4
Assignee: Igor Vaynberg
> SelectOptions onPopulate method exception will never be thrown
> --------------------------------------------------------------
>
> Key: WICKET-3225
> URL: https://issues.apache.org/jira/browse/WICKET-3225
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.5-M3
> Environment: all
> Reporter: Richard Emberson
> Assignee: Igor Vaynberg
> Priority: Trivial
> Fix For: 1.5-M4
>
>
> In the extensions SelectOptions onPopulate method there is the following code:
> Collection<? extends T> modelObject = (Collection<? extends
> T>)getDefaultModelObject();
>
> if (modelObject != null)
> {
> if (!(modelObject instanceof Collection))
> {
> throw new WicketRuntimeException("Model object " + modelObject +
> " not a collection");
> }
> .....
> I suspect that the WicketRuntimeException will never be thrown because the
> cast above it
> will fail first.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.