From e55e597eea3ab29d4064675335c20bcd57f601a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20W=C3=B6gerer?= Date: Mon, 14 Oct 2019 15:08:20 +0200 Subject: [PATCH] Ensure runtime init of java.nio.file.FileSystems#builtinFileSystemProvider --- .../src/com/oracle/svm/hosted/jdk/JNIRegistrationJavaNio.java | 1 + 1 file changed, 1 insertion(+) diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationJavaNio.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationJavaNio.java index 53820ae9b284..c86e11c60273 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationJavaNio.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationJavaNio.java @@ -51,6 +51,7 @@ class JNIRegistrationJavaNio extends JNIRegistrationUtil implements Feature { @Override public void duringSetup(DuringSetupAccess a) { rerunClassInit(a, "sun.nio.ch.IOUtil", "sun.nio.ch.ServerSocketChannelImpl", "sun.nio.ch.DatagramChannelImpl", "sun.nio.ch.FileChannelImpl", "sun.nio.ch.FileKey"); + rerunClassInit(a, "java.nio.file.FileSystems"); rerunClassInit(a, "java.nio.file.FileSystems$DefaultFileSystemHolder"); rerunClassInit(a, "java.nio.file.Files$FileTypeDetectors"); rerunClassInit(a, "sun.nio.ch.Net", "sun.nio.ch.SocketOptionRegistry$LazyInitialization");