This is an automated email from the ASF dual-hosted git repository.
pzampino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new f2d07eb14 KNOX-3262 Remove Java 17 message on Knox start-up (#1158)
f2d07eb14 is described below
commit f2d07eb14321715a417c4c4bdfe754d072a9a132
Author: Phil Zampino <[email protected]>
AuthorDate: Thu Feb 26 10:51:12 2026 -0500
KNOX-3262 Remove Java 17 message on Knox start-up (#1158)
---
gateway-release-common/home/bin/knox-functions.sh | 12 ------------
gateway-release/home/bin/knoxcli.sh | 2 --
2 files changed, 14 deletions(-)
diff --git a/gateway-release-common/home/bin/knox-functions.sh
b/gateway-release-common/home/bin/knox-functions.sh
index 37e0d9b03..06a87bfd4 100644
--- a/gateway-release-common/home/bin/knox-functions.sh
+++ b/gateway-release-common/home/bin/knox-functions.sh
@@ -169,16 +169,6 @@ function addAppJavaOpts {
done
}
-function addJdk17Properties {
- # Add properties to enable Knox to run on JDK 17
- JAVA_VERSION=$("$JAVA" -version 2>&1 | awk -F '"' '/version/ {print $2}')
- CHECK_VERSION_17="17"
- if [[ "$JAVA_VERSION" == *"$CHECK_VERSION_17"* ]]; then
- echo "Java version is $CHECK_VERSION_17. Adding properties to enable
Knox to run on JDK 17"
- addAppJavaOpts
"-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true --add-exports
java.base/sun.security.x509=ALL-UNNAMED --add-exports
java.base/sun.security.pkcs=ALL-UNNAMED --add-exports
java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens
java.base/sun.security.util=ALL-UNNAMED"
- fi
-}
-
function buildAppJavaOpts {
if [ -n "$APP_MEM_OPTS" ]; then
addAppJavaOpts "${APP_MEM_OPTS}"
@@ -196,8 +186,6 @@ function buildAppJavaOpts {
addAppJavaOpts "${APP_JAVA_LIB_PATH}"
fi
- addJdk17Properties
-
# echo "APP_JAVA_OPTS =" "${APP_JAVA_OPTS[@]}"
}
diff --git a/gateway-release/home/bin/knoxcli.sh
b/gateway-release/home/bin/knoxcli.sh
index 4d5e0a920..2603a30f5 100755
--- a/gateway-release/home/bin/knoxcli.sh
+++ b/gateway-release/home/bin/knoxcli.sh
@@ -62,8 +62,6 @@ function buildAppJavaOpts {
addAppJavaOpts "${APP_JAVA_LIB_PATH}"
fi
- addJdk17Properties
-
# echo "APP_JAVA_OPTS =" "${APP_JAVA_OPTS[@]}"
}