You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/01/19 15:21:36 UTC

[jira] [Resolved] (WICKET-5804) Infinite while loop in PropertyValidator#createUnresolvablePropertyMessage

     [ https://issues.apache.org/jira/browse/WICKET-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5804.
-------------------------------------
    Resolution: Duplicate
      Assignee: Martin Grigorov  (was: Igor Vaynberg)

Closing as duplicate of WICKET-5811 because it has the patch.

> Infinite while loop in PropertyValidator#createUnresolvablePropertyMessage
> --------------------------------------------------------------------------
>
>                 Key: WICKET-5804
>                 URL: https://issues.apache.org/jira/browse/WICKET-5804
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-bean-validation
>    Affects Versions: 6.18.0, 7.0.0-M4
>            Reporter: Simo Kivimäki
>            Assignee: Martin Grigorov
>            Priority: Minor
>
> PropertyValidator's createUnresolvablePropertyMessage method may stuck in infinite while loop.
> {code}
> while (true)
> {
> 	if (model == null)
> 	{
> 		break;
> 	}
> 	if (model instanceof IPropertyReflectionAwareModel)
> 	{
> 		break;
> 	}
> 	if (model instanceof IWrapModel<?>)
> 	{
> 		model = ((IWrapModel<?>)model).getWrappedModel();
> 		continue;
> 	}
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)