Affects: All supported versions
Using @Validated can result in a CGLib proxy being created for a bean. This has the sometimes unexpected side-effect of changing how the bean's fields behave when accessed directly. Please see this Spring Boot issue for an example of a problem that this unexpected behavior can cause.
I think it would be good if the Framework reference documentation noted the use of a proxy and forewarned users about the side-effects.
Affects: All supported versions
Using
@Validatedcan result in a CGLib proxy being created for a bean. This has the sometimes unexpected side-effect of changing how the bean's fields behave when accessed directly. Please see this Spring Boot issue for an example of a problem that this unexpected behavior can cause.I think it would be good if the Framework reference documentation noted the use of a proxy and forewarned users about the side-effects.