Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2013-10-16 19:11:20 +0000
committerGerrit Code Review @ Eclipse.org2013-10-17 15:38:50 +0000
commite45b38d4bab835666a40862d9fd2d05d7260d156 (patch)
treefe6426b207c735a92ab05aa8feb8a4f3b9376668
parente0194e6bda257bc995f9e7b3be2b994c6f82b62d (diff)
downloadorg.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.tar.gz
org.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.tar.xz
org.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.zip
bug: Set wasLoaded flag to false on error
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java
index 8fa78cfa4b5..85ccbd66aa3 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java
@@ -47,13 +47,11 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem
private final boolean uniqueName;
private final AtomicBoolean wasLoaded;
private long lastLoaded;
- private boolean ignoreEnsurePopulateException;
protected AbstractOseeCache(OseeCacheEnum cacheId, IOseeDataAccessor<K, T> dataAccessor, boolean uniqueName) {
this.lastLoaded = 0;
this.cacheId = cacheId;
this.wasLoaded = new AtomicBoolean(false);
- this.ignoreEnsurePopulateException = false;
this.dataAccessor = dataAccessor;
this.uniqueName = uniqueName;
}
@@ -75,14 +73,6 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem
// for subclass overriding
}
- public void setIgnoreEnsurePopulateException(boolean isIgnored) {
- this.ignoreEnsurePopulateException = isIgnored;
- }
-
- public boolean isEnsurePopulateExceptionIgnored() {
- return ignoreEnsurePopulateException;
- }
-
@Override
public OseeCacheEnum getCacheId() {
return cacheId;
@@ -269,9 +259,8 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem
try {
reloadCache();
} catch (OseeCoreException ex) {
- if (!isEnsurePopulateExceptionIgnored()) {
- throw ex;
- }
+ wasLoaded.set(false);
+ throw ex;
}
}
}

Back to the top