浏览代码

262350: testcode

tags/pre268419
aclement 15 年前
父节点
当前提交
6a46a9eaf0
共有 3 个文件被更改,包括 29 次插入0 次删除
  1. 9
    0
      tests/bugs164/pr262350/Instrumentation.java
  2. 10
    0
      tests/bugs164/pr262350/Test3.java
  3. 10
    0
      tests/bugs164/pr262350/Test4.java

+ 9
- 0
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) {
}
}


+ 10
- 0
tests/bugs164/pr262350/Test3.java 查看文件

@@ -0,0 +1,10 @@
public class Test3 {
public void m0() {
synchronized (this) {
synchronized ("Hello") {
System.out.println("Hello World");
}

}
}
}

+ 10
- 0
tests/bugs164/pr262350/Test4.java 查看文件

@@ -0,0 +1,10 @@
public class Test3 {
public void m0() {
synchronized (this) {
synchronized ("Hello") {
System.out.println("Hello World");
}

}
}
}

正在加载...
取消
保存