posted 21 years ago
Gavin,
AspectJ does not expose join point corresponding to local variables inside a method (had "i" been a instance or class variable, you would be able to advice modifications to it).
As Michael points out, you could log the return values of calls to filter1() and filter2(). I would, however, suggest not using AspectJ for such purpose. Such logging isn�t really a crosscutting concern and therefore AOP won�t be the right tool for this job.
-Ramnivas