Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-03-07 21:33:36 +0000
committerThomas Watson2014-03-10 13:24:14 +0000
commit180bc899f1560e348940b0e981ba115a5904da7c (patch)
treed57d0dde3b7356c4eed4ffe3c17993f02141ab83 /bundles/org.eclipse.osgi/supplement
parent82e8bb282bf520275f22cfa6001809cbbe46884e (diff)
downloadrt.equinox.framework-180bc899f1560e348940b0e981ba115a5904da7c.tar.gz
rt.equinox.framework-180bc899f1560e348940b0e981ba115a5904da7c.tar.xz
rt.equinox.framework-180bc899f1560e348940b0e981ba115a5904da7c.zip
Bug 429921 - consistency issues with extracting bundle content to cache
- Fix usage of mkdirs()
Diffstat (limited to 'bundles/org.eclipse.osgi/supplement')
-rw-r--r--bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java
index 7ddfe4c5b..d7d2b193a 100644
--- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java
+++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2013 IBM Corporation and others.
+ * Copyright (c) 2004, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -694,7 +694,7 @@ public final class StorageManager {
public void open(boolean wait) throws IOException {
if (!readOnly) {
managerRoot.mkdirs();
- if (!managerRoot.exists())
+ if (!managerRoot.isDirectory())
throw new IOException(Msg.fileManager_cannotLock);
if (openCleanup)
cleanup(true);

Back to the top