]> source.dussan.org Git - aspectj.git/commitdiff
233032: test for dual clinits
authoraclement <aclement>
Wed, 18 Feb 2009 21:05:02 +0000 (21:05 +0000)
committeraclement <aclement>
Wed, 18 Feb 2009 21:05:02 +0000 (21:05 +0000)
tests/bugs164/pr233032/A.java [new file with mode: 0644]

diff --git a/tests/bugs164/pr233032/A.java b/tests/bugs164/pr233032/A.java
new file mode 100644 (file)
index 0000000..6ec8c5f
--- /dev/null
@@ -0,0 +1,21 @@
+import org.aspectj.lang.*;
+import org.aspectj.lang.annotation.*;
+
+@Aspect("percflow(within(C))")
+public class A {
+
+  @Before("execution(* foo(..)) && cflow(execution(* bar(..)) && this(o))")
+  public void m(Object o) {}
+
+  public static void main(String[] argv) {
+    new C().bar();
+  }
+
+}
+
+class C {
+  public void bar() {
+    foo();
+  }
+  public void foo() {}
+}