Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] compile question

Title: RE: [aspectj-users] compile question

> -----Original Message-----
> From: Wes Isberg [mailto:wes@xxxxxxxxxxxxxx]
> Sent: Monday, July 28, 2003 12:08 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: Re: [aspectj-users] compile question
>
>
>  > This is not possible.  AspectJ won't recompile classes
> unless they change
>  > or an aspect that crosscuts them changes.  When this
> happens, it starts
>  > over, producing new .class files rather than patching
> existing ones.
>
> That's right, but incremental compilation is different from reweaving.

I don't understand the benefit of incremental compilation.  Can you shed some light on that?

> Right now we've imposed a limitation that .class files can
> only be woven once,
> so you can't weave in an aspect and then reweave it or any others.
>
> But if you *want* an aspect to apply twice, you could make it abstract
> and have two concrete subaspects, and weave them both in one go.
>
> Is there a concern that drove this question?  Did that answer it?

The concern was just that someone might inadvertently apply the same aspect twice and  have the code run twice.  Your response it just what I was looking for.  Thanks!

>
> Wes
>
> Volkmann, Mark wrote:
>
> > Is it possible to apply an aspect multiple times to the
> same .class file
> > and have the advice code run multiple times?
> >
> > I think I know the answer, but I want to make sure.  I'm
> guessing the answer
> > is this.
> >
> > This is not possible.  AspectJ won't recompile classes
> unless they change
> > or an aspect that crosscuts them changes.  When this
> happens, it starts
> > over, producing new .class files rather than patching existing ones.
> >
> > Correct?
> >
> >
> >
> **************************************************************
> *********************
> > WARNING:  All e-mail sent to and from this address will be
> received or
> > otherwise recorded by the A.G. Edwards corporate e-mail
> system and is
> > subject to archival, monitoring or review by, and/or disclosure to,
> > someone other than the recipient.
> >
> **************************************************************
> **********************
> >
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>



***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************

Back to the top