Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-03-12 14:45:03 -0500
committerDJ Houghton2010-03-12 14:45:03 -0500
commit155dbeb6cc3e6e9903d82effa3997cf9a43134cb (patch)
treea36d0fbd2f5fe9b0df6503405f2a8abe3e41f675 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parenta7c9456d9fe17155da1f26c93b1908b61cadfe0c (diff)
downloadrt.equinox.p2-155dbeb6cc3e6e9903d82effa3997cf9a43134cb.tar.gz
rt.equinox.p2-155dbeb6cc3e6e9903d82effa3997cf9a43134cb.tar.xz
rt.equinox.p2-155dbeb6cc3e6e9903d82effa3997cf9a43134cb.zip
Bug 305710 - Garbage collection may delete bundles it used to keep
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseMarkSetProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseMarkSetProvider.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseMarkSetProvider.java
index f7143e889..faf6c666f 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseMarkSetProvider.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseMarkSetProvider.java
@@ -117,7 +117,9 @@ public class EclipseMarkSetProvider extends MarkSetProvider {
private List<IArtifactKey> findCorrespondinArtifacts(BundleInfo[] bis, IArtifactRepository repo) {
ArrayList<IArtifactKey> toRetain = new ArrayList<IArtifactKey>();
for (int i = 0; i < bis.length; i++) {
- IArtifactKey match = searchArtifact(bis[i].getSymbolicName(), Version.create(bis[i].getVersion()), ARTIFACT_CLASSIFIER_OSGI_BUNDLE, repo);
+ // if version is "0.0.0", we will use null to find all versions, see bug 305710
+ Version version = BundleInfo.EMPTY_VERSION.equals(bis[i].getVersion()) ? null : Version.create(bis[i].getVersion());
+ IArtifactKey match = searchArtifact(bis[i].getSymbolicName(), version, ARTIFACT_CLASSIFIER_OSGI_BUNDLE, repo);
if (match != null)
toRetain.add(match);
}

Back to the top