aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR118149.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-12-06 03:20:59 +0000
committeracolyer <acolyer>2005-12-06 03:20:59 +0000
commitd43e74b5c919ebaef67a4b7551a464b8db3b289a (patch)
tree30f7b343e036a6ba4a0b70d7ded154bb460c7dde /tests/bugs150/PR118149.aj
parent5611db4f27a752ef5b65f61b614eb3d5ca30bb01 (diff)
downloadaspectj-d43e74b5c919ebaef67a4b7551a464b8db3b289a.tar.gz
aspectj-d43e74b5c919ebaef67a4b7551a464b8db3b289a.zip
tests and fix for pr118149
Diffstat (limited to 'tests/bugs150/PR118149.aj')
-rw-r--r--tests/bugs150/PR118149.aj23
1 files changed, 23 insertions, 0 deletions
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) {
+ }
+
+}