From 368883bf8494e552daf9194d9885c858997fd876 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 5 Dec 2008 18:16:51 +0000 Subject: [PATCH] 256458: test and fix: better message for if() pointcut anno style problems --- tests/bugs163/pr256458/Code.java | 7 +++++++ tests/bugs163/pr256458/Code2.java | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/bugs163/pr256458/Code.java create mode 100644 tests/bugs163/pr256458/Code2.java 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() { + } + +} -- 2.39.5