Skip to content

Commit

Permalink
common: Initialize BrokenPipe-/ConnectionResetExceptions for native code
Browse files Browse the repository at this point in the history
... so JNI can find them.
  • Loading branch information
kohlschuetter committed Feb 4, 2024
1 parent eba1d2c commit 703cfd4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ static void initPre() {
tryResolveClass(AbstractSelectableChannel.class.getName());
tryResolveClass("java.lang.ProcessBuilder$RedirectPipeImpl");
tryResolveClass(InetSocketAddress.class.getName());
tryResolveClass(OperationNotSupportedSocketException.class.getName());
tryResolveClass(InvalidArgumentSocketException.class.getName());
tryResolveClass(AddressUnavailableSocketException.class.getName());
tryResolveClass(OperationNotSupportedSocketException.class.getName());
tryResolveClass(NoSuchDeviceSocketException.class.getName());
tryResolveClass(BrokenPipeSocketException.class.getName());
tryResolveClass(ConnectionResetSocketException.class.getName());
}

private static void tryResolveClass(String className) {
Expand Down

0 comments on commit 703cfd4

Please sign in to comment.