Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] code check experiment

Hi,

Using your "Observer Demo" sample, I try to experiment some code check
like:

public aspect DemoAspect {

    pointcut displayInColor() : call(* *.ColorLabel+.new(Display));

    declare error : displayInColor() : "don't call ColorLabel with
Display argument";
}

I expected to get an error line in my tasks view, but nothing happened.
What's wrong ?

Regards,
Dragan


Back to the top