RFR(s) #2: 6344935: (spec) clarify specifications for Object.wait overloads

Martin Buchholz martinrb at google.com
Sat Aug 19 20:53:38 UTC 2017


Now I see that the code snippet in TimeUnit.timedWait is also in need
of fixing. Hmmmm ....

 public synchronized Object poll(long timeout, TimeUnit unit)
     throws InterruptedException {
   while (empty) {
     unit.timedWait(this, timeout);
     ...
   }
 }


More information about the core-libs-dev mailing list