PammyS / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

InterruptedException is not rethrowed after await methods #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are numerous cases in the code when InterruptedException is not rethrowed 
after Condition.await() method. For examples in PendingResponse.waitDone():

try {
    condition.await(timeout, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
}

Since await() clears interrupted flag of the thread if it was interrupted it's 
impossible to find out whether the current thread was interrupted or not.

Original issue reported on code.google.com by mrtwiste...@gmail.com on 27 Oct 2011 at 4:57