This is an automated email from the ASF dual-hosted git repository.
twolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push:
new 5a82a9e36 GH-285: Fix compilation failure on Java 19
5a82a9e36 is described below
commit 5a82a9e36acdcf2d4ff9721090a480e3ac5addb8
Author: Liam Miller-Cushon <[email protected]>
AuthorDate: Sun Dec 11 12:35:06 2022 -0800
GH-285: Fix compilation failure on Java 19
Follow-up to 03986c5b8a31e6f32843067f14e983a361cb6759
Bug: https://github.com/apache/mina-sshd/issues/285
---
.../sshd/common/util/threads/CloseableExecutorService.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git
a/sshd-common/src/main/java/org/apache/sshd/common/util/threads/CloseableExecutorService.java
b/sshd-common/src/main/java/org/apache/sshd/common/util/threads/CloseableExecutorService.java
index cc7a81b96..3f4bf77dd 100644
---
a/sshd-common/src/main/java/org/apache/sshd/common/util/threads/CloseableExecutorService.java
+++
b/sshd-common/src/main/java/org/apache/sshd/common/util/threads/CloseableExecutorService.java
@@ -20,6 +20,7 @@
package org.apache.sshd.common.util.threads;
import java.io.IOException;
+import java.io.UncheckedIOException;
import java.time.Duration;
import java.util.Objects;
import java.util.concurrent.ExecutorService;
@@ -34,7 +35,11 @@ public interface CloseableExecutorService extends
ExecutorService, Closeable {
}
@Override
- default void close() throws IOException {
- Closeable.super.close();
+ default void close() {
+ try {
+ Closeable.super.close();
+ } catch (IOException e) {
+ throw new UncheckedIOException(e);
+ }
}
}