You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Simo Kivimäki (JIRA)" <ji...@apache.org> on 2015/01/07 12:20:34 UTC

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

Simo Kivimäki created WICKET-5804:
-------------------------------------

             Summary: 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: 7.0.0-M4, 6.18.0
            Reporter: Simo Kivimäki
            Assignee: Igor Vaynberg
            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)