summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR118149.aj
diff options
context:
space:
mode:
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) {
+ }
+
+}