[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] infinite recursion warning with cflow
|
- From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 10:43:02 -0400
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=dOH3nNFFr7WHrFGDFi015Ac4ZFVpmZg2w07aRthMELg=; b=PAtX4avxwUC6TsmTOAo5Mm2FExX1uQSTSZ2PznlViJu1ZFLrs4zY6fmW0AB3phB0SB ZX8XtqFjsLu50BgV7lgfxx+tQEm7Yp5Qb4jzlEyStRekgCTkBzqcX5xPRca4VxTS5C1v IpTlxPRyBibu6nOewFfgkm9caLpGUpnsYrECI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Qd/7nIjODpIOOyxXTDsbwzQTRmxjo1nmEOH15WxBKywN5O5WZcRF+6H3kN1zOamNnY hKLBOr8UhYR7TEx8i2dB7A2l6uRVL2dC93QV8tFS4LPHCbAKi5M4O3HdC6GkYEdxawdO oHRTDlI6G0mVzcEhNRw13/T5KprakS40OK+OA=
Hi Alex.
Using the AspectBench Compiler you can write a tracematch that does
that. Using plain AspectJ that's hard to do. You would have to use a
combination of pieces of advice, if-pointcuts and counters.
Eric
2008/9/29 Alex Villazon <alex.villazon@xxxxxxxxxxx>:
> Hi,
> Is it possible to write an aspect that prints a message after a giving
> number of recursive invocations.. and warns that there is a potential
> infinite recursion?
>
> Or is there any mean to check for example if there is a given sequence of
> calls in the control flow?
>
> Can I write a pointcut that captures the control flow only when X.f was
> called 3 times before Y.g?
>
> Many thanks
>
> Alex
>
> _______________________________________________
> 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