diff options
author | aclement <aclement> | 2008-12-05 18:16:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-12-05 18:16:51 +0000 |
commit | 368883bf8494e552daf9194d9885c858997fd876 (patch) | |
tree | 28ea326ba6d141697d00b824e23f080a82c7d99f /tests/bugs163 | |
parent | 7147c4a3650bc6ea608bce40363df2e79f5ddca5 (diff) | |
download | aspectj-368883bf8494e552daf9194d9885c858997fd876.tar.gz aspectj-368883bf8494e552daf9194d9885c858997fd876.zip |
256458: test and fix: better message for if() pointcut anno style problems
Diffstat (limited to 'tests/bugs163')
-rw-r--r-- | tests/bugs163/pr256458/Code.java | 7 | ||||
-rw-r--r-- | tests/bugs163/pr256458/Code2.java | 10 |
2 files changed, 17 insertions, 0 deletions
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() { + } + +} |