]> source.dussan.org Git - aspectj.git/commitdiff
256458: test and fix: better message for if() pointcut anno style problems
authoraclement <aclement>
Fri, 5 Dec 2008 18:16:51 +0000 (18:16 +0000)
committeraclement <aclement>
Fri, 5 Dec 2008 18:16:51 +0000 (18:16 +0000)
tests/bugs163/pr256458/Code.java [new file with mode: 0644]
tests/bugs163/pr256458/Code2.java [new file with mode: 0644]

diff --git a/tests/bugs163/pr256458/Code.java b/tests/bugs163/pr256458/Code.java
new file mode 100644 (file)
index 0000000..c2dd54d
--- /dev/null
@@ -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 (file)
index 0000000..eed38b6
--- /dev/null
@@ -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() {
+   }
+
+}