<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 05/11/2025 23:10, Pavel Rappo wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAChcVunyDTzcTDXUUhzcXJAgD7NQKkZHS20hDuhHVy0KMwd+EA@mail.gmail.com">
<pre wrap="" class="moz-quote-pre">And also this, which is a bit contrived but valid nonetheless:
} catch (InterruptedException e) { // good
throw new InterruptedException();
}
</pre>
</blockquote>
The good/bad table is fun. For completeness you can also add the
case where someone restores the interrupt status and rethrows the
InterruptedException (or throws a new InterruptedException). It
would be strange to do this but no different to a double whammy
where two parts of the system are requesting you to cancel/finish-up
around the same time.<br>
<br>
-Alan<br>
</body>
</html>