Open GoogleCodeExporter opened 9 years ago
The problem is you're (indirectly) calling equals() or hashCode() on the
intercepted object. And that's getting
intercepted, and you're getting into problems.
You can fix this by adding the following to the TOP of your method interceptor.
This will prevent equals() and
hashCode() from being intercepted:
if (methodInvocation.getMethod().getDeclaringClass() == Object.class) {
return methodInvocation.proceed();
}
Original comment by limpbizkit
on 28 Dec 2008 at 2:02
Thanks. Is this going to be left without a fix then? It seems that any call to
.getThis() will inevitably be penalized with this exception.
Original comment by dh.evolu...@gmail.com
on 28 Dec 2008 at 2:46
it's not getThis() that causes the problem. It's getThis() followed by
hashCode(). There's not much we can
do here...
Original comment by limpbizkit
on 28 Dec 2008 at 4:30
Original issue reported on code.google.com by
dh.evolu...@gmail.com
on 12 Dec 2008 at 8:47Attachments: