summaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/transformed/Six.java
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-24 07:15:42 +0000
committeraclement <aclement>2006-05-24 07:15:42 +0000
commitb2247654a3b35eb26731fac20247fc3007612eab (patch)
tree3b3bc6d6e2833e1d62aaf4506b1e8e3f4d12f51d /tests/features152/synchronization/transformed/Six.java
parent917a3a70f5c09f16151200f13eb89283c4bb2abf (diff)
downloadaspectj-b2247654a3b35eb26731fac20247fc3007612eab.tar.gz
aspectj-b2247654a3b35eb26731fac20247fc3007612eab.zip
synchronization joinpoints: testcode
Diffstat (limited to 'tests/features152/synchronization/transformed/Six.java')
-rw-r--r--tests/features152/synchronization/transformed/Six.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/features152/synchronization/transformed/Six.java b/tests/features152/synchronization/transformed/Six.java
new file mode 100644
index 000000000..71c800a4b
--- /dev/null
+++ b/tests/features152/synchronization/transformed/Six.java
@@ -0,0 +1,26 @@
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+
+public aspect Six {
+ public static void main(String[] args) {
+ C.bbb();
+ C.c();
+ }
+
+ before(): !within(Six) && call(* println(..)) { System.err.println("test");}
+}
+
+class C {
+ public static synchronized void bbb() {
+ System.err.println("hello");
+ }
+
+ public static void c() {
+ synchronized (C.class) {
+ System.err.println("hello");
+ }
+ }
+}
+
+aspect SixX { pointcut p(): unlock(); }