View Full Version : httpInvoker and toString()
adepue
Oct 7th, 2004, 08:11 PM
Just started to use httpinvoker and I noticed that when anyone calls toString() on the proxy created by HttpInvokerProxyFactoryBean, the call to toString() is remoted. It's probably this way for hashCode and equals as well. Is this really desireable?
- Andy
Juergen Hoeller
Oct 9th, 2004, 03:50 PM
Thanks for spotting this - this is clearly not desirable. It just happens for HTTP invoker and RMI invoker, BTW, not for the other remoting strategies (and just for toString and hashCode).
I've just fixed HttpInvokerClientInterceptor and RmiClientInterceptor accordingly, to handle toString locally. Furthermore, JdkDynamicAopProxy handles hashCode locally too now, not just equals.
Juergen
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.