[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] aspectJ compiler crashes - is this a bug?
|
HI,
You will have to modify your apsect code as follows,
But its executing advice code twice, I do not know why?
aspect oops {
pointcut args_only(int a, float b) : args(a, b);
after(int a, float b) : !within(oops) && args_only(a, b) {
System.out.println("After args : a = "+a+" :b = "+b);
}
}
class test
{
public static void main(String[] args)
{
test obj = new test();
int a = obj.f(10,3);
}
public int f(int a, float s) {
System.out.println("Inside test.f()");
return 1;
}
}
Jitesh
> ----------
> From: aspectj-users-admin@xxxxxxxxxxx[SMTP:aspectj-users-admin@xxxxxxxxxxx] on behalf of Devi Prasad[SMTP:dpstorms@xxxxxxxxx]
> Reply To: aspectj-users@xxxxxxxxxxx
> Sent: Friday, March 05, 2004 7:44 PM
> To: aspectj-users@xxxxxxxxxxx; aspectj-dev@xxxxxxxxxxx
> Subject: [aspectj-users] aspectJ compiler crashes - is this a bug?
>
> Hi
> while experimenting with aspectJ 1.1.1, I found
> that the compiler crashes while compiling this tiny
> piece of code. The compiler produces a dump saying
> that this could be a bug.
> Can someone clarify why the compiler is crashing? I
> havent' included the compiler dump because this is a
> very small piece of code:
>
> -----------------------------------------------------
> class test {
> public int f(int a, float s) { return 1; }
> }
>
> aspect oops {
> pointcut args_only() : args(int, int);
>
> after() : args_only() {
> }
> }
> -----------------------------------------------------
>
> Thanks
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you're looking for faster
> http://search.yahoo.com
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>