Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] adding local variables using aspect J

> >From what I gather (and briefly 'tested'), saving state in variables in
> 'around advice' sounds like a suitable option since those variables (e.g.,
> starttimer, in your code) seem to behave like thread safe, local variables.
> The pertarget, perthis... options sound good but still they are tied to
> object data which may be shared and overwritten by threads. Please correct
> me If I am wrong.

Yep, you would have to manage threading issues with state yourself if
using those per clauses.

Andy


Back to the top