示例
public
class
ClassA {
private boolean
b;
public void
methodA () {
synchronized
(
this
) {
notify();
}
}
}
解决方案
删除 synchronized 块或更改对象的状态。