Updates:
        Status: Invalid

Comment #1 on issue 281 by limpbizkit: Attempt to call  
methodInvocation.getThis results in StackOverflowError
http://code.google.com/p/google-guice/issues/detail?id=281

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();
   }


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to