From 6743c93ee153ecd41102aeb383ff7e91d30906df Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 16 Oct 2017 17:33:26 +0200 Subject: [PATCH] silence Java 9 illegal reflective access warnings --- installer/appx/filebot.l4j.ini | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/installer/appx/filebot.l4j.ini b/installer/appx/filebot.l4j.ini index fee70bc3..9a2887c5 100644 --- a/installer/appx/filebot.l4j.ini +++ b/installer/appx/filebot.l4j.ini @@ -38,12 +38,19 @@ # force Application User Model ID for Windows Store -Dnet.filebot.AppUserModelID=@{microsoft.application.name} -# disable Java 9 module encapsulation +# silence Java 9 illegal reflective access warnings +--illegal-access=warn --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED ---add-opens=java.base/java.io=ALL-UNNAMED ---add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED +--add-opens=java.base/java.util.function=ALL-UNNAMED +--add-opens=java.base/java.util.regex=ALL-UNNAMED +--add-opens=java.base/java.io=ALL-UNNAMED +--add-opens=java.base/java.nio.file=ALL-UNNAMED +--add-opens=java.base/java.nio.file.attribute=ALL-UNNAMED +--add-opens=java.base/java.nio.channels=ALL-UNNAMED +--add-opens=java.base/java.nio.charset=ALL-UNNAMED +--add-opens=java.logging/java.util.logging=ALL-UNNAMED # support JAVA_OPTS environment variable %JAVA_OPTS%