]> source.dussan.org Git - aspectj.git/commitdiff
262350: testcode
authoraclement <aclement>
Mon, 9 Feb 2009 20:21:18 +0000 (20:21 +0000)
committeraclement <aclement>
Mon, 9 Feb 2009 20:21:18 +0000 (20:21 +0000)
tests/bugs164/pr262350/Instrumentation.java [new file with mode: 0644]
tests/bugs164/pr262350/Test3.java [new file with mode: 0644]
tests/bugs164/pr262350/Test4.java [new file with mode: 0644]

diff --git a/tests/bugs164/pr262350/Instrumentation.java b/tests/bugs164/pr262350/Instrumentation.java
new file mode 100644 (file)
index 0000000..13f86c9
--- /dev/null
@@ -0,0 +1,9 @@
+package dImmunix;
+
+import java.util.concurrent.locks.Lock;
+import java.util.concurrent.locks.ReentrantLock;
+public aspect Instrumentation {
+        after(Object l) throwing: lock() && args(l) {
+        }
+}
+
diff --git a/tests/bugs164/pr262350/Test3.java b/tests/bugs164/pr262350/Test3.java
new file mode 100644 (file)
index 0000000..df50dba
--- /dev/null
@@ -0,0 +1,10 @@
+public class Test3 {
+       public void m0() {
+               synchronized (this) {
+                       synchronized ("Hello") {
+                               System.out.println("Hello World");
+                       }
+
+               }
+       }
+}
diff --git a/tests/bugs164/pr262350/Test4.java b/tests/bugs164/pr262350/Test4.java
new file mode 100644 (file)
index 0000000..df50dba
--- /dev/null
@@ -0,0 +1,10 @@
+public class Test3 {
+       public void m0() {
+               synchronized (this) {
+                       synchronized ("Hello") {
+                               System.out.println("Hello World");
+                       }
+
+               }
+       }
+}