Skip to content

Commit

Permalink
fix(gradle): opens java.lang for the /threaddump endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jul 17, 2023
1 parent 17d728d commit c9c2e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gradle/jar/selfrun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ IF %java_version% NEQ 0 (

REM Opens java.nio due to https://github.com/snowflakedb/snowflake-jdbc/issues/589
REM Opens java.util due to https://github.com/Azure/azure-sdk-for-java/issues/27806
SET "JAVA_ADD_OPENS=--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
REM Opens java.lang due to https://github.com/kestra-io/kestra/issues/1755, see https://github.com/micronaut-projects/micronaut-core/issues/9573
SET "JAVA_ADD_OPENS=--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED"

java %JAVA_OPTS% %JAVA_ADD_OPENS% -jar "%this%" %*

Expand Down
3 changes: 2 additions & 1 deletion gradle/jar/selfrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ esac

# Opens java.nio due to https://github.com/snowflakedb/snowflake-jdbc/issues/589
# Opens java.util due to https://github.com/Azure/azure-sdk-for-java/issues/27806
JAVA_ADD_OPENS="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
# Opens java.lang due to https://github.com/kestra-io/kestra/issues/1755, see https://github.com/micronaut-projects/micronaut-core/issues/9573
JAVA_ADD_OPENS="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED"

# Exec
exec java ${JAVA_OPTS} ${JAVA_ADD_OPENS} -jar "$0" "$@"
Expand Down

0 comments on commit c9c2e67

Please sign in to comment.