Hmmm... With debugger, when I looked to MethodInvocation instance given to invoke() method, I saw something quite strange.
in the "proxy" field of "mi" (MethodInvocation instance), there are many "CGLIB$CALLBACK_" fields... Ok... BUT : I found two similars CGLIB$CALLBACK_0 and CGLIB$CALLBACK_1 The target methods are respectively : public volatile com.xxx.MyObject com.xxx.MyObjectServiceImpl.createXXX(com.xxx.Session) public com.xxx.MyObject com.xxx.MyObjectServiceImpl.createXXX(com.xxx.Session) So, the same method is present twice, with just "volatile" as difference... Why??? Another method into the same class doesn't have this behaviour (interceptor calling interceptor again calling the real method...) Regards, Anthony MÜLLER 2008/9/12 Anthony MULLER <[EMAIL PROTECTED]> > Hello, > > When I use AOP feature, sometimes I have a strange behaviour and I don't > know why... > > When I call mi.proceed(); into invoke() method of the interceptor, the > interceptor's invoke() method is called again! But the intercepted method is > called once has expected... > > Why the interceptor is called twice sometimes? > > Regards, > Anthony MÜLLER > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en -~----------~----~----~----~------~----~------~--~---
