Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2021-06-03 13:29:38 +0000
committerSarika Sinha2021-06-08 03:17:58 +0000
commit476c40081060040f56a6c6be1f2ca1d8f68f7e0f (patch)
treea4d9acc12e6614b43307fa539885920ebdd5c47b
parenta5ba003d16dbc4b6b8b8735c3f8bbb9b275f435a (diff)
downloadeclipse.jdt.debug-476c40081060040f56a6c6be1f2ca1d8f68f7e0f.tar.gz
eclipse.jdt.debug-476c40081060040f56a6c6be1f2ca1d8f68f7e0f.tar.xz
eclipse.jdt.debug-476c40081060040f56a6c6be1f2ca1d8f68f7e0f.zip
Bug 573865 - [launch] renaming a JRE adds a trailing slash after the
name in run configurations Change-Id: Ibb7fd00b5a1d5c0fd4a3fb13a44fc37c35b80d31 Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/181347 Tested-by: JDT Bot <jdt-bot@eclipse.org> Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaJRETab.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaJRETab.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaJRETab.java
index 29359ff28..f27174227 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaJRETab.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaJRETab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -215,7 +215,7 @@ public class JavaJRETab extends JavaLaunchTab {
IPath containerPath = fJREBlock.getPath();
String portablePath = null;
if (containerPath != null) {
- portablePath = containerPath.toPortableString();
+ portablePath = containerPath.addTrailingSeparator().toPortableString();
}
configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, portablePath);
}

Back to the top