From b6d5f319a101d120450a6bb6f9d5d2f91b41021c Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 18 Feb 2009 21:05:02 +0000 Subject: [PATCH] 233032: test for dual clinits --- tests/bugs164/pr233032/A.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/bugs164/pr233032/A.java diff --git a/tests/bugs164/pr233032/A.java b/tests/bugs164/pr233032/A.java new file mode 100644 index 000000000..6ec8c5ff2 --- /dev/null +++ b/tests/bugs164/pr233032/A.java @@ -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() {} +} -- 2.39.5