Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: Consider a class: 1 class Foo { 2 int i = 3; 3 void foo(Bar bar) { 4 i = 33; 5 ... Let's apply some before advice to Foo#foo: aspect FooAspect { before() : execution(* *(..)) { ... Let's set a breakpoint at line 4. When the breakpoint is triggered, the call stack looks like: <unknown receiving type>.foo(Bar) : line 4 .... and no variables are displayed, while the debugger raises com.sun.jdi.InternalException: Got error code in reply:35 occured retrieving 'this' from stack frame. More information: Go a Step Over and the call stack and the variables look correct.
This bug was split out from bug 262146.
interesting. This seems like a regression - I'm sure the debugger used to work fine for this simple case.
Ah well, it is fixed now. The local variables representing 'this' and the parameters are adjusted to start from the beginning of the method when before advice is applied at method-execution. I've rebuilt an AJDT privately and confirmed debugging is ok. I have a slight concern whether there is a performance impact for this reworking of the local variables, but it certainly isn't anything obvious in the testing I've done.