Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] can aspectj pick out local variables?

Hi Gon.

No, AspectJ cannot do this. This is a more general problem: local
variables do not exist in bytecode. There are only stack locations.
Soot and the AspectBench Compiler can reconstruct local variables from
stack locations but those reconstructed variables do not always
correspond 100% to the variables in source code. I am not currently
aware of any "local-variable pointcut" implementation, exactly for
those reasons.

Eric

--
Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 4 February 2010 23:02, Byung-Gon Chun <bgchun@xxxxxxxxx> wrote:
> Hi,
> I'd like to track local variables in aspectj.
> Can aspectj pick out local variables?
> If not, can I extend aspectj easily to do this? What other tool can support
> this feature?
> Thanks!
> -Gon
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>


Back to the top