範例

public static class ClassA {
Condition c;
public void methodA {
try {
c.wait();
} catch ( Exception e ) {
//...
}
}

}
解決方案
將 wait() 取代為 await()

public static class ClassA {
Condition c;
public void methodA {
try {
c.await();
} catch ( Exception e ) {
//...
}
}

}