This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new 41d0dbcd3 fix(server): fix reflect bug in init-store.sh (#2905)
41d0dbcd3 is described below

commit 41d0dbcd3adc91c87fc14540cf5b08ffa96c4a83
Author: Tsukilc <[email protected]>
AuthorDate: Wed Nov 12 19:58:52 2025 +0800

    fix(server): fix reflect bug in init-store.sh (#2905)
---
 .../hugegraph-dist/src/assembly/static/bin/init-store.sh           | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh 
b/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh
index f89db7e5a..9aefd1160 100755
--- a/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh
+++ b/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh
@@ -45,12 +45,7 @@ fi
 
 cd "${TOP}" || exit
 
-DEFAULT_JAVA_OPTIONS=""
-JAVA_VERSION=$($JAVA -version 2>&1 | awk 'NR==1{gsub(/"/,""); print $3}' | awk 
-F'_' '{print $1}')
-# TODO: better not string number compare, use `bc` like 
github.com/koalaman/shellcheck/wiki/SC2072
-if [[ $? -eq 0 && $JAVA_VERSION >  "1.9" ]]; then
-      
DEFAULT_JAVA_OPTIONS="--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED"
-fi
+DEFAULT_JAVA_OPTIONS="--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED"
 
 echo "Initializing HugeGraph Store..."
 

Reply via email to