Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-08-11 09:40:11 -0400
committerMichael Valenta2004-08-11 09:40:11 -0400
commita5a5a1d07bdd2af1203b4853716045b8bfa70db0 (patch)
tree89829b54779e5f272a288e355f75b0805a5bd264
parent6c2564c215a887599c5705d353c2fed939608f81 (diff)
downloadeclipse.platform.team-a5a5a1d07bdd2af1203b4853716045b8bfa70db0.tar.gz
eclipse.platform.team-a5a5a1d07bdd2af1203b4853716045b8bfa70db0.tar.xz
eclipse.platform.team-a5a5a1d07bdd2af1203b4853716045b8bfa70db0.zip
Bug 68721 [3.0.1] ResourceVariantStorage causes StackOverflowError
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/variants/CachedResourceVariant.java19
1 files changed, 4 insertions, 15 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/variants/CachedResourceVariant.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/variants/CachedResourceVariant.java
index ef97e8953..0b24d2182 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/variants/CachedResourceVariant.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/variants/CachedResourceVariant.java
@@ -13,21 +13,10 @@ package org.eclipse.team.core.variants;
import java.io.IOException;
import java.io.InputStream;
-import org.eclipse.core.resources.IEncodedStorage;
-import org.eclipse.core.resources.IResourceStatus;
-import org.eclipse.core.resources.IStorage;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.PlatformObject;
-import org.eclipse.core.runtime.Status;
+import org.eclipse.core.resources.*;
+import org.eclipse.core.runtime.*;
import org.eclipse.team.core.TeamException;
-import org.eclipse.team.internal.core.Assert;
-import org.eclipse.team.internal.core.Policy;
-import org.eclipse.team.internal.core.ResourceVariantCache;
-import org.eclipse.team.internal.core.ResourceVariantCacheEntry;
-import org.eclipse.team.internal.core.TeamPlugin;
+import org.eclipse.team.internal.core.*;
/**
* A resource variant is a partial implementation of a remote resource
@@ -75,7 +64,7 @@ public abstract class CachedResourceVariant extends PlatformObject implements IR
return getCachedContents();
}
public IPath getFullPath() {
- return getFullPath();
+ return new Path(getCachePath());
}
public String getName() {
return CachedResourceVariant.this.getName();

Back to the top