This is an automated email from the ASF dual-hosted git repository. bohdan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/drill.git
commit 43cc1402fc9a569092fe31e8b3b0cd47cbd2ec6d Author: Volodymyr Vysotskyi <[email protected]> AuthorDate: Tue Dec 24 18:04:07 2019 +0200 DRILL-7497: Fix warnings when starting Drill on Windows using Java 11 closes #1939 --- distribution/src/main/resources/sqlline.bat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/distribution/src/main/resources/sqlline.bat b/distribution/src/main/resources/sqlline.bat index c5ab816..71831f0 100755 --- a/distribution/src/main/resources/sqlline.bat +++ b/distribution/src/main/resources/sqlline.bat @@ -198,14 +198,15 @@ if "%JAVA_HOME%" == "" (set JAVA_CMD=%JAVA_EXE%) set ERROR_CODE=0 rem Check that java is newer than 1.8 -"%JAVA_CMD%" -version 2>&1 | findstr "1.8" > nul 2>&1 +"%JAVA_CMD%" -version 2>&1 | findstr "1.8" > nul 2>&1 if errorlevel 1 ( rem allow reflective access on Java 9+ - set DRILL_SHELL_JAVA_OPTS=%DRILL_SHELL_JAVA_OPTS% --add-opens java.base/java.lang=ALL-UNNAMED - set DRILL_SHELL_JAVA_OPTS=%DRILL_SHELL_JAVA_OPTS% --add-opens java.base/sun.nio.ch=ALL-UNNAMED - set DRILL_SHELL_JAVA_OPTS=%DRILL_SHELL_JAVA_OPTS% --add-opens java.base/java.nio=ALL-UNNAMED - set DRILL_SHELL_JAVA_OPTS=%DRILL_SHELL_JAVA_OPTS% --add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED - set DRILL_SHELL_JAVA_OPTS=%DRILL_SHELL_JAVA_OPTS% --illegal-access=permit + set DRILL_SHELL_JAVA_OPTS=!DRILL_SHELL_JAVA_OPTS! ^ + --add-opens java.base/java.lang=ALL-UNNAMED ^ + --add-opens java.base/sun.nio.ch=ALL-UNNAMED ^ + --add-opens java.base/java.nio=ALL-UNNAMED ^ + --add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED ^ + --illegal-access=permit ) set SQLLINE_CALL=sqlline.SqlLine -ac org.apache.drill.exec.client.DrillSqlLineApplication
