Skip to content

Commit cd169d6

Browse files
committed
Add test showing faulty synchronized behaviour
1 parent 88bc1f9 commit cd169d6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
862 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class Sync {
2+
public static void main(String[] args) {
3+
final Object o = null;
4+
try {
5+
synchronized (o) {}
6+
assert false;
7+
} catch (NullPointerException e) {
8+
return;
9+
}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
KNOWNBUG
2+
Sync.class
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
See #1236 for details of this test.

0 commit comments

Comments
 (0)