Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5804

Infinite while loop in PropertyValidator#createUnresolvablePropertyMessage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.18.0, 7.0.0-M4
    • Fix Version/s: None
    • Component/s: wicket-bean-validation
    • Labels:
      None

      Description

      PropertyValidator's createUnresolvablePropertyMessage method may stuck in infinite while loop.

      while (true)
      {
      	if (model == null)
      	{
      		break;
      	}
      	if (model instanceof IPropertyReflectionAwareModel)
      	{
      		break;
      	}
      	if (model instanceof IWrapModel<?>)
      	{
      		model = ((IWrapModel<?>)model).getWrappedModel();
      		continue;
      	}
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Tzvetanov Grigorov
                Reporter:
                simokivimaki Simo Kivimäki
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: