Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] about set pcd capabilities

Hi.

Is there a way to know the previos value of a field when I apply a set pcd ??

Suppose I have the next piece of code:

1.      double d;
2.      void m() {
3.          d = 5.5;
            // a lot of code here
40.        d = Math.random();
41.        System.out.println(d);
42.    }  

I can use 'set(double d)' to know the new value will be assigned to 'd' field. Can I know the OLD value of 'd' at line 40 ??

Is it possible to apply get/set pcd and advising field 'd' at line 1 ??

Best regards.
Uli.

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.

Back to the top