summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2008-12-05 18:16:51 +0000
committeraclement <aclement>2008-12-05 18:16:51 +0000
commit368883bf8494e552daf9194d9885c858997fd876 (patch)
tree28ea326ba6d141697d00b824e23f080a82c7d99f /tests
parent7147c4a3650bc6ea608bce40363df2e79f5ddca5 (diff)
downloadaspectj-368883bf8494e552daf9194d9885c858997fd876.tar.gz
aspectj-368883bf8494e552daf9194d9885c858997fd876.zip
256458: test and fix: better message for if() pointcut anno style problems
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs163/pr256458/Code.java7
-rw-r--r--tests/bugs163/pr256458/Code2.java10
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() {
+ }
+
+}