Selaa lähdekoodia

262350: testcode

tags/pre268419
aclement 15 vuotta sitten
vanhempi
commit
6a46a9eaf0

+ 9
- 0
tests/bugs164/pr262350/Instrumentation.java Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

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

}
}
}

Loading…
Peruuta
Tallenna