Skip to content

Commit 5b0c34f

Browse files
authored
Merge pull request #1230 from reuk/reuk/synchronized-test
Add test showing faulty synchronized behaviour
2 parents 1f2bb67 + cd169d6 commit 5b0c34f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
862 Bytes
Binary file not shown.
Lines changed: 11 additions & 0 deletions
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+
}
Lines changed: 10 additions & 0 deletions
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)