[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] ERROR: ... must be declared in an aop.xml file
- From: Barry Kaplan <groups1@xxxxxxxxxxx>
- Date: Mon, 22 May 2006 09:36:23 -0400
- Delivered-to: firstname.lastname@example.org
- User-agent: Thunderbird 22.214.171.124 (Windows/20060308)
Ah, yes, I got it. I'll check if it advises itself. It very well could.
Adrian Colyer wrote:
If you compile an aspect that advises itself, the resulting class file
on disk will be woven. If this .class file is then used as input to
the LTW process (loaded by the JVM when an LTW agent is defined), you
get the error that you are seeing unless the aspect is defined in
aop.xml. Changing the aspect definition to not advise itself (&&
!within(MultiFactoryBeanConfigurerSupportFactoryAdder)) would be one
way around this. The evil -XnoWeave used to be another option, but we
took that away because it was, well, evil ;).