[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: [aspectj-users] No WEAVEINFO messages for cflow pointcuts!
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Mon, 11 Jun 2007 08:26:31 +0100
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FxEO5tKaH/2vojo6KzYZ1J2YhG+7bMEIByMpYTZfDqUGenSuo77xxznhWERwOu4lyvsoYeI7X1MEXlLsugsU07wQ3NtH8k160FR+PoDwH9LouB9G8izItxGLTWx6/pew0ufFfueuBbpVNSeWLhceKBnJf1qqyGPH9MUkvIEHX9Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cYSZ+jNs4RQSCXZ1mepLESBZ0ZgKg2JqpUIc82Pfh+H8D8dkvzfyrNooq0Ckcmc831qUA4Lsv3Q4sHGK4/FGUssNUNwH7N9ESGQ0cfn4wpxptpmZBlNOrmHZVat3xaBIcVmPvyPZVWdKTIgEPf59tYmHUVxClRmnodgyXw2wpEY=
The if() statement you quote is talking about kinds of advice - but
your message talks about pointcuts???
That if() statement will allow for advice attached to cflow pointcuts just fine:
public aspect A {
before(): cflow(call(* m2(..))) && withincode(* m(..)) { }
public void m() {m2();}
public void m2() {}
}
ajc -showWeaveInfo A.java
Join point 'method-call(void A.m2())' in Type 'A' (A.java:5) advised
by before advice from 'A' (A.java:3) [with runtime test]
On 11/06/07, Heiko Seeberger <heiko.seeberger@xxxxxxxxxxxxx> wrote:
Hi,
I am using AJEER (http://ajeer.sourceforge.net/) which is a
load-time-weaving enabler for the eclipse Runtime. AJEER itself relies
on the AspectJ LTW API.
When using pointcuts with cflow(...) I run into serious trouble, because
AJEER relies on WEAVEINFO messages which seem only to be generated for
certain "interesting" pointcuts.
See org.aspectj.weaver.Shadow.reportWeavingMessage(...):
// Only report on interesting advice kinds ...
...
if (!( aKind.equals(AdviceKind.Before) ||
aKind.equals(AdviceKind.After) ||
aKind.equals(AdviceKind.AfterReturning) ||
aKind.equals(AdviceKind.AfterThrowing) ||
aKind.equals(AdviceKind.Around) ||
aKind.equals(AdviceKind.Softener))) return;
I kindly request help form the AJ gurus for that:
Why are cflow pointcuts not interesting?
Is there a chance to fix this?
Regards,
Heiko
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users