From d43e74b5c919ebaef67a4b7551a464b8db3b289a Mon Sep 17 00:00:00 2001 From: acolyer Date: Tue, 6 Dec 2005 03:20:59 +0000 Subject: tests and fix for pr118149 --- tests/bugs150/PR118149.aj | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/bugs150/PR118149.aj (limited to 'tests/bugs150/PR118149.aj') diff --git a/tests/bugs150/PR118149.aj b/tests/bugs150/PR118149.aj new file mode 100644 index 000000000..99bd27537 --- /dev/null +++ b/tests/bugs150/PR118149.aj @@ -0,0 +1,23 @@ +public aspect PR118149 { + + public pointcut pc1(String s) + : execution(* C.*()) && args(s) && if(s != null); + + public pointcut pc2(String s) + : execution(C.new(String,..)) + && args(s,..) && if(s != null); + + public pointcut pcOR(String s) : pc1(s) || pc2(s); + + before(String s) : pcOR(s) { + } + +} + + +class C { + + public C(String s, boolean b) { + } + +} -- cgit v1.2.3