summaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-05 12:46:40 +0000
committeraclement <aclement>2006-07-05 12:46:40 +0000
commit8d74e6f01acd609c61db17449767808451566fe4 (patch)
tree301facb946621d2858a47116d0b2f3876ec11b27 /tests/bugs153
parent7b526ecf23dc03453f8f8adb3a25c67b0a7018b8 (diff)
downloadaspectj-8d74e6f01acd609c61db17449767808451566fe4.tar.gz
aspectj-8d74e6f01acd609c61db17449767808451566fe4.zip
moved tests to 153
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr145693/Event.java1
-rw-r--r--tests/bugs153/pr145693/Monitor.aj13
-rw-r--r--tests/bugs153/pr145693/Sample.java11
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs153/pr145693/Event.java b/tests/bugs153/pr145693/Event.java
new file mode 100644
index 000000000..e2a8b628a
--- /dev/null
+++ b/tests/bugs153/pr145693/Event.java
@@ -0,0 +1 @@
+public class Event {}
diff --git a/tests/bugs153/pr145693/Monitor.aj b/tests/bugs153/pr145693/Monitor.aj
new file mode 100644
index 000000000..7e1f6ed61
--- /dev/null
+++ b/tests/bugs153/pr145693/Monitor.aj
@@ -0,0 +1,13 @@
+public aspect Monitor {
+ public pointcut handleEvent(Event event):
+ execution(* handleEvent(Event, ..)) && args(event);
+
+ public pointcut inHandleEvent(Event event): cflow(handleEvent(event));
+
+ before(Event event):
+ set(* currentView) &&
+ inHandleEvent(event) {
+System.err.println("advice running");
+ }
+
+}
diff --git a/tests/bugs153/pr145693/Sample.java b/tests/bugs153/pr145693/Sample.java
new file mode 100644
index 000000000..8f27ff78d
--- /dev/null
+++ b/tests/bugs153/pr145693/Sample.java
@@ -0,0 +1,11 @@
+public class Sample {
+
+// private
+static Object currentView;
+
+ public static void main(String args[]) {
+System.err.println("method running");
+ currentView = "test";
+ }
+
+}