You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2021/08/14 06:09:50 UTC
[orc] branch branch-1.6 updated: ORC-945: Add OUTPUT_QUIET,
ERROR_QUIET to suppress Java8 addopen error messages (#858)
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-1.6
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.6 by this push:
new a72a766 ORC-945: Add OUTPUT_QUIET, ERROR_QUIET to suppress Java8 addopen error messages (#858)
a72a766 is described below
commit a72a766d669d91b150d127ac33e5ef35e97c1fdc
Author: William Hyun <wi...@apache.org>
AuthorDate: Fri Aug 13 23:08:39 2021 -0700
ORC-945: Add OUTPUT_QUIET, ERROR_QUIET to suppress Java8 addopen error messages (#858)
### What changes were proposed in this pull request?
This PR aims to add `OUTPUT_QUIET` and `ERROR_QUIET` to suppress Java8 `add-open` error messages
### Why are the changes needed?
Error messages could be misleading, so we had better suppress it.
- https://github.com/apache/orc/runs/3324055264
```
Unrecognized option: --add-opens
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```
### How was this patch tested?
Check the GHA logs on this PR.
(cherry picked from commit 6840cd65a8986f2fe63e78dad4c6b10c825c8e6a)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
java/CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index 7a0d601..f88b14e 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -66,7 +66,9 @@ add_test(
execute_process(
COMMAND java --add-opens java.base/java.nio=ALL-UNNAMED -version
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- RESULT_VARIABLE RET)
+ RESULT_VARIABLE RET
+ OUTPUT_QUIET
+ ERROR_QUIET)
if(RET EQUAL 0)
set(ADD_OPENS --add-opens)
set(JAVA_NIO java.base/java.nio=ALL-UNNAMED)