Throw UncheckedIOException instead of RuntimeException on bad processing
in NativeFtpFile
diff --git a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java b/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
index 9529a94..3b6a31e 100644
--- a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
+++ b/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
@@ -26,6 +26,7 @@
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
+import java.io.UncheckedIOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
@@ -408,7 +409,7 @@
otherCanonicalPath = ((NativeFtpFile) obj).file
.getCanonicalPath();
} catch (IOException e) {
- throw new RuntimeException("Failed to get the canonical path",
+ throw new UncheckedIOException("Failed to get the canonical path",
e);
}