Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWainer dos Santos Moschetta2015-06-09 10:50:58 -0400
committerJeff Johnston2015-06-09 21:25:27 -0400
commitb7d6ed887b3fcf5168c2ae107a7251de819d45cd (patch)
tree3861f72a6295d5bcef6fa786228ced3a7a5f3b6f
parent792bd4476001f0e78363e6a161ca0d17ecc273f1 (diff)
downloadorg.eclipse.linuxtools-b7d6ed887b3fcf5168c2ae107a7251de819d45cd.tar.gz
org.eclipse.linuxtools-b7d6ed887b3fcf5168c2ae107a7251de819d45cd.tar.xz
org.eclipse.linuxtools-b7d6ed887b3fcf5168c2ae107a7251de819d45cd.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> (cherry picked from commit 0ecb171e3fac4143d42635e4f6cf27ccb6585784) Reviewed-on: https://git.eclipse.org/r/49877
-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