Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWainer dos Santos Moschetta2015-06-09 14:50:58 +0000
committerJeff Johnston2015-06-10 01:04:20 +0000
commit0ecb171e3fac4143d42635e4f6cf27ccb6585784 (patch)
treeaf9f8cf68c284dbae23ebd8e01ead5c13241baf8
parenta792657f559bc3fb7c4683e7ff59510218494795 (diff)
downloadorg.eclipse.linuxtools-0ecb171e3fac4143d42635e4f6cf27ccb6585784.tar.gz
org.eclipse.linuxtools-0ecb171e3fac4143d42635e4f6cf27ccb6585784.tar.xz
org.eclipse.linuxtools-0ecb171e3fac4143d42635e4f6cf27ccb6585784.zip
proxy: proxy manager cannot return LocalFileProxy singleton
The remote proxy was returning a singleton LocalFileProxy, but any call to getWorkingDir() would give the URI of first occurency. Change-Id: Ibd4eefaaa42970cd717d412922643448be321f27 Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com> Reviewed-on: https://git.eclipse.org/r/49801 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
index 5ba2f53387..dae475bc9e 100644
--- a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
+++ b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
@@ -35,7 +35,6 @@ public class RemoteProxyManager implements IRemoteProxyManager {
protected static final String LOCALSCHEME = "file"; //$NON-NLS-1$
private static RemoteProxyManager manager;
- private LocalFileProxy lfp;
/**
* @since 2.1
*/
@@ -56,9 +55,7 @@ public class RemoteProxyManager implements IRemoteProxyManager {
}
LocalFileProxy getLocalFileProxy(URI uri) {
- if (lfp == null)
- lfp = new LocalFileProxy(uri);
- return lfp;
+ return new LocalFileProxy(uri);
}
/**
* @param schemeId The protocol scheme to be used.

Back to the top