Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2021-09-24 06:20:13 +0000
committerEd Merks2021-09-24 06:41:10 +0000
commit7aba4e24389ac6b293028ac2a5109b2dc5d80aed (patch)
tree899a071f1327eb300eb9e923924548c5d4255cd4
parent3ce784a501dee627986f14bbcbbce3b5755540a2 (diff)
downloadrt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.tar.gz
rt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.tar.xz
rt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.zip
to fail to start Don't use String.replaceAll when String.replace is intended, especially not when the first argument is a file system path. Change-Id: Ib1f65a5062cf0552ec4d4c81e0419102221871ac Signed-off-by: Ed Merks <ed.merks@gmail.com> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/185795
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index 6c215bec7..3cb2fab53 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -1970,7 +1970,7 @@ public class Main {
String launcher = System.getProperty(PROP_LAUNCHER);
if (launcher == null)
throw new IllegalStateException("Install location depends on launcher, but launcher is not defined"); //$NON-NLS-1$
- installArea = installArea.replaceAll(LAUNCHER_DIR, new File(launcher).getParent());
+ installArea = installArea.replace(LAUNCHER_DIR, new File(launcher).getParent());
}
installLocation = buildURL(installArea, true);
if (installLocation == null)

Back to the top