"rythos" wrote:
Hey there,
I'm using a caller side pointcut to intercept all method calls from a particular class. When run, I get a ClassCastException in CallerExprEditor. Tracking it down, it looks (to my untrained eye) that the problem is when CallerExprEditor calls MethodHashing.methodHash(..) and casts the given MethodCall parameter to a CtMethod. I was thinking that the problem is because it's trying to hash a CtConstructor, not a CtMethod, but I haven't explored much further than this.
Any ideas?
Thanks,
Craig
ok, the problem I think is that you are calling a method from within a constructor? This is not supported, I'll fix when I can.
bill