diff options
-rw-r--r-- | tests/bugs164/pr262350/Instrumentation.java | 9 | ||||
-rw-r--r-- | tests/bugs164/pr262350/Test3.java | 10 | ||||
-rw-r--r-- | tests/bugs164/pr262350/Test4.java | 10 |
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs164/pr262350/Instrumentation.java b/tests/bugs164/pr262350/Instrumentation.java new file mode 100644 index 000000000..13f86c9d3 --- /dev/null +++ b/tests/bugs164/pr262350/Instrumentation.java @@ -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 index 000000000..df50dba37 --- /dev/null +++ b/tests/bugs164/pr262350/Test3.java @@ -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 index 000000000..df50dba37 --- /dev/null +++ b/tests/bugs164/pr262350/Test4.java @@ -0,0 +1,10 @@ +public class Test3 { + public void m0() { + synchronized (this) { + synchronized ("Hello") { + System.out.println("Hello World"); + } + + } + } +} |