(Object o, int y)
| 1 | public class Ex { |
| 2 | |
| 3 | public void frotz(Object o, int y) { |
| 4 | if (y == 6) { |
| 5 | synchronized (o) { |
| 6 | y += o.hashCode(); |
| 7 | if ((y & 1) == 0) |
| 8 | throw new RuntimeException(); |
| 9 | } |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | public void alwaysThrow() { |
| 14 | throw new RuntimeException(); |