I guess this part of the code is trying to get the ModelAttribute annotation from the BindingResult parameter itself instead of the previous one as it should be. This is causing ann variable to be always null and therefore ignoring the value of the @ModelAttribute annotation.

Comment From: pivotal-cla

@bougar Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@bougar Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

Good catch!

This has been merged into 5.3.x and main.

Thanks