From: aclement Date: Fri, 5 Dec 2008 18:16:51 +0000 (+0000) Subject: 256458: test and fix: better message for if() pointcut anno style problems X-Git-Tag: V1_6_3rc1~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=368883bf8494e552daf9194d9885c858997fd876;p=aspectj.git 256458: test and fix: better message for if() pointcut anno style problems --- diff --git a/tests/bugs163/pr256458/Code.java b/tests/bugs163/pr256458/Code.java new file mode 100644 index 000000000..c2dd54de2 --- /dev/null +++ b/tests/bugs163/pr256458/Code.java @@ -0,0 +1,7 @@ +import org.aspectj.lang.annotation.*; + +@Aspect +public class Code { + @Before("if(37!=42)") + public void runme() {} +} diff --git a/tests/bugs163/pr256458/Code2.java b/tests/bugs163/pr256458/Code2.java new file mode 100644 index 000000000..eed38b6a3 --- /dev/null +++ b/tests/bugs163/pr256458/Code2.java @@ -0,0 +1,10 @@ +import org.aspectj.lang.annotation.*; + +@Aspect +public class Code2 { + + @Around("execution(* Code.*(..)) && if(java.lang.System.currentTimeMillis() > 1)") + public void foo() { + } + +}