[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Configure IAJC Ant task to ignorealreadyweaved-in.class files

According to this http://www.eclipse.org/aspectj/doc/next/devguide/printable.html#weaving-class-files-more-than-once all aspects and classes are reweavable by default as of AspectJ 5. I believe I am using version 1.5.2. I will update to the latest version and retry.

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Eric Bodden
Sent: Wednesday, June 27, 2007 1:12 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] Configure IAJC Ant task to ignorealreadyweaved-in.class files

I think reweaving mode only became relatively recently default. So you
might try to set -Xreweavable explicitly.

Eric

On 27/06/07, Alec Lebedev <alec.lebedev@xxxxxxxxxxxx> wrote:
>
>
>
>
> Keeping woven classes separate from unwoven works OK, but I agree that
> weaving should be idempotent. The aspectj libraries I am using are a
> year-old. Has this bug been recently fixed?
>
>
>
>  ________________________________
>
>
> From: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ron
> Bodkin
>  Sent: Wednesday, June 27, 2007 11:29 AM
>  To: aspectj-users@xxxxxxxxxxx
>  Subject: RE: [aspectj-users] Configure IAJC Ant task to ignore
> alreadyweaved-in.class files
>
>
>
>
> Hi Alec,
>
>
>
> I'd recommend structuring your build so that you keep the unwoven classes in
> one place and the woven ones elsewhere. That way you can always reweave the
> unwoven version. On the other hand, I thought AspectJ is supposed to reweave
> classes properly, i.e., unweave and then reweave, as many times as you want.
> Isn't this a weaver bug?
>
>
>
>  ________________________________
>
>
> From: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of
> Alec Lebedev
>  Sent: Wednesday, June 27, 2007 10:17 AM
>  To: aspectj-users@xxxxxxxxxxx
>  Subject: [aspectj-users] Configure IAJC Ant task to ignore already
> weaved-in.class files
>
>
>
> I am getting the following JVM exception when running the classes that have
> been weaved-in with the IAJC Ant target multiple times.
>
> "java.lang.ClassFormatError: Repetitive field name/signature in class file
> com/mycompany/MyClass"
>
>
>
> The reason why sometimes I end up running IAJC against the same compiled
> code multiple times is that I don't know if the code has changed since the
> last time IAJC was run. The only way I was able to solve the problem is by
> recompiling all my classes before running IAJC Ant target, which is very
> time-consuming.
>
>
>
> Is there a way to configure IAJC Ant task to only weave an aspect in a
> .class file if this aspect has not been weaved in the file before?
>
>
>
> Thanks.
>
>
>
> Alec
>
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users