From fcf89fc6437965265c9a5af86fe165faf018d81a Mon Sep 17 00:00:00 2001 From: Jiri Date: Sun, 26 Dec 2021 12:16:42 +0100 Subject: [PATCH] Added opens of javap for jdk17+ --- java-runtime-decompiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-runtime-decompiler b/java-runtime-decompiler index 4357d7c..b765d90 100644 --- a/java-runtime-decompiler +++ b/java-runtime-decompiler @@ -82,5 +82,5 @@ else echo "Agent was not found and agent path was not set correctly. This has to be done manually in the decompiler GUI, or set AGENT_PATH===path_to_agent_jar in the configuration file: $CONFIG_FILE" >&2 fi -export FLAGS="$FLAGS -Djdk.attach.allowAttachSelf=true" +export FLAGS="$FLAGS -Djdk.attach.allowAttachSelf=true --add-exports jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED" # jdk11+ do not allow attach by default; jdk17 is hiding javap api run "$@"