Jeromy Evans wrote:
> by nature of the way proxies are created, the don't carry
> the method annotations of the proxied implementation.  

This is true, the methods on the proxy will not be annotated, but Struts 2 does 
search super classes for those annotations. Since proxies generated by CGLIB 
extend the class they proxy, S2 will pick up those validation annotations on 
the super class methods.

So, in short, annotation validation does work when proxies are involved.

Jeromy is also right that there is a bug for @SkipValidation not working with 
proxies. Here's the link:
https://issues.apache.org/struts/browse/WW-2587

Brad Cupit
Louisiana State University - UIS

Reply via email to