Michael Smith has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19939


Change subject: IMPALA-11260: (Addendum) Restrict add-opens to Java 9+
......................................................................

IMPALA-11260: (Addendum) Restrict add-opens to Java 9+

Restricts jvm_automatic_add_opens to only apply to Java 9+ where the
option exists. Previously it would also include it in Java 8, which
caused the JVM to ignore all options in JAVA_TOOL_OPTIONS.

Tests for Java version by running $JAVA_HOME/bin/java -version and
parsing version from the first line. All JVM implementations are
expected to include the version in a quoted string, such as "1.8.0_42"
and "11.0.1".

Also added add-opens flags for frontend tests.
test_no_inaccessible_objects detected this in a test run.

Testing: manually confirmed -agentlib options are present with both Java
8 and Java 11.

Change-Id: I85953e685f6bbbd213afd93f389066e82f193ddf
---
M be/src/common/init.cc
M bin/run-all-tests.sh
2 files changed, 63 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/39/19939/1
--
To view, visit http://gerrit.cloudera.org:8080/19939
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I85953e685f6bbbd213afd93f389066e82f193ddf
Gerrit-Change-Number: 19939
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to