You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have an explicit catch block for this exception but we only call a single method, and according to both the docs and the source code, this exception is never thrown by it.
The Java tooling probably isn't smart enough to detect that this is dead code though because the signature for read is technically just throws IOException, which InterruptedIOException is a subclass of. But, probably still dead in actuality.
The text was updated successfully, but these errors were encountered:
InsertCreativityHere
changed the title
Inspect our Usafe of InterruptedIOException in Java
Inspect our Usage of InterruptedIOException in Java
Jan 8, 2025
At least some (maybe all) of the places where we catch this exception are probably dead code.
For example in
StreamSocket
:ice/java/src/com.zeroc.ice/src/main/java/com/zeroc/Ice/StreamSocket.java
Lines 142 to 156 in b2e8e42
The Java tooling probably isn't smart enough to detect that this is dead code though because the signature for
read
is technically justthrows IOException
, whichInterruptedIOException
is a subclass of. But, probably still dead in actuality.The text was updated successfully, but these errors were encountered: