Skip to content

Commit 41d0dbc

Browse files
authored
fix(server): fix reflect bug in init-store.sh (#2905)
1 parent 496b150 commit 41d0dbc

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • hugegraph-server/hugegraph-dist/src/assembly/static/bin

hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ fi
4545

4646
cd "${TOP}" || exit
4747

48-
DEFAULT_JAVA_OPTIONS=""
49-
JAVA_VERSION=$($JAVA -version 2>&1 | awk 'NR==1{gsub(/"/,""); print $3}' | awk -F'_' '{print $1}')
50-
# TODO: better not string number compare, use `bc` like github.com/koalaman/shellcheck/wiki/SC2072
51-
if [[ $? -eq 0 && $JAVA_VERSION > "1.9" ]]; then
52-
DEFAULT_JAVA_OPTIONS="--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED"
53-
fi
48+
DEFAULT_JAVA_OPTIONS="--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED"
5449

5550
echo "Initializing HugeGraph Store..."
5651

0 commit comments

Comments
 (0)