[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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: firstname.lastname@example.org
- 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=
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.
2008/9/29 Alex Villazon <alex.villazon@xxxxxxxxxxx>:
> 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
> aspectj-users mailing list
Sable Research Group
McGill University, Montréal, Canada