From 6a46a9eaf098d04844852e055c75d062c1361e8c Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 9 Feb 2009 20:21:18 +0000 Subject: 262350: testcode --- tests/bugs164/pr262350/Instrumentation.java | 9 +++++++++ tests/bugs164/pr262350/Test3.java | 10 ++++++++++ tests/bugs164/pr262350/Test4.java | 10 ++++++++++ 3 files changed, 29 insertions(+) create mode 100644 tests/bugs164/pr262350/Instrumentation.java create mode 100644 tests/bugs164/pr262350/Test3.java create mode 100644 tests/bugs164/pr262350/Test4.java (limited to 'tests/bugs164') 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"); + } + + } + } +} -- cgit v1.2.3