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
Priority: Trivial
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.