mrszj / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Struts2 plugin and interceptors #677

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all,
some struts users have been experienced some issues with struts client side 
validation [1].
As I explained here [2], the problem is that guice wraps the interceptors stack 
with an inner private class. Under this circumstances 
"instanceof","isInstance", casts and class specific operators fail.

Unfortunately I don't know your constraints, but IMHO a code generation library 
(like cglib or javassist) could fix the problem (instead of a wrap class).

TIA

[1] http://goo.gl/tcx0x
[2] http://goo.gl/4hQAX

Original issue reported on code.google.com by maurizio.cucchiara on 11 Jan 2012 at 11:32