Binder focus on error

I’m extending Binder to focus on the first validation error like

   @Override
   public BinderValidationStatus<T> validate()
   {
      BinderValidationStatus<T> result = super.validate();
      if (!result.getFieldValidationErrors().isEmpty())
      {
         HasValue<?> field = result.getFieldValidationErrors().iterator().next().getField();
         if (field instanceof Focusable)
         {
            ((Focusable) field).focus();
         }
      }
      return result;
   }

It looks to be the case but is there a guarantee that the errors will be in order of binding of the fields?

Sorry for the late reply, but in case it is of use to someone: the current implementation uses a LinkedHashSet for the bindings, and thus does e.g. validation in the order of binding. However, this is not specified in the API documentation and is thus at least in theory subject to change, although I would not expect this to change in the foreseeable future.