# HG changeset patch # User Ingo Weinzierl # Date 1275411555 0 # Node ID 13bea93a070a038197f0e10018420a3d32afdd44 # Parent cc4ec127d666e679a1eaac694038c900187e020d Do not call the endOfLife method of the current state before advancing to a next state, because this would remove elements from cache that have been inserted just before - it would be impossible to make use of a cache in that case. gnv-artifacts/trunk@1144 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r cc4ec127d666 -r 13bea93a070a gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Tue Jun 01 16:54:21 2010 +0000 +++ b/gnv-artifacts/ChangeLog Tue Jun 01 16:59:15 2010 +0000 @@ -1,3 +1,9 @@ +2010-06-01 Ingo Weinzierl + + * src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java: Do not + call endOfLife of the current state before advancing to the next state. + This would make it impossible to use the cache. + 2010-06-01 Ingo Weinzierl * src/main/java/de/intevation/gnv/state/StateBase.java: Remove existing diff -r cc4ec127d666 -r 13bea93a070a gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Tue Jun 01 16:54:21 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Tue Jun 01 16:59:15 2010 +0000 @@ -255,10 +255,6 @@ next.setParent(current); next.setPreSettings(this.preSettings); - if (current != null) { - current.endOfLife(context.globalContext()); - } - // 3. Switch to next State current = next;