From a125b8784d8a760d1cb7f4ec7ef7cb6496b131a2 Mon Sep 17 00:00:00 2001 From: ghidra1 Date: Tue, 4 Nov 2025 16:18:43 -0500 Subject: [PATCH] GP-0 Corrected Java 1.8 compilation error in LaunchProperties --- .../src/main/java/ghidra/launch/LaunchProperties.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/LaunchProperties.java b/GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/LaunchProperties.java index c3822b9d9e..efac026caf 100644 --- a/GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/LaunchProperties.java +++ b/GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/LaunchProperties.java @@ -193,10 +193,10 @@ public class LaunchProperties { text = text.replaceAll("\\$\\{" + key + "\\}", value.replace("\\", "\\\\")); } catch (IllegalArgumentException e) { - throw new ParseException( - "Error expanding environment variable in %s (env %s=%s) -- %s".formatted(text, - key, value, e.getMessage()), - 0); + String msg = + String.format("Error expanding environment variable in %s (env %s=%s) -- %s", + text, key, value, e.getMessage()); + throw new ParseException(msg, 0); } } return text;