Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Multiple AspectJ agents

Hi,

We make a Java agent that uses a shaded version of AspectJ, and doing LTW. We'd like our agent to be able to coexist with other agents which might be using AspectJ as well in LTW mode.

Is that supposed to work in principle? Our testing shows that it works to some extent, but clearly fails when an Around advice is applied by both agents to the same method - in that case there seems to be a naming clash with the generated AjcClosure inner class, which can be resolved if we change the name of that inner class (by modifying the AspectJ source code).

So the thing I'm trying to understand is whether AspectJ is designed for that use case, and I just found a bug (which I might be able to fix), or, am I just opening a can of worms here...

In that respect, what's the role of "overweaving" which seems to be related (it doesn't fix the issue I just reported).

Thanks,
Uri

Back to the top