[#2643] Routine.execute(Configuration) should restore the original

routine state after execution
This commit is contained in:
Lukas Eder 2013-09-09 11:40:04 +02:00
parent 472c68cbb3
commit 58811ae3e7

View File

@ -222,9 +222,15 @@ public abstract class AbstractRoutine<T> extends AbstractQueryPart implements Ro
@Override
public final int execute(Configuration c) {
// Ensure that all depending Attachables are attached
attach(c);
return execute();
// Ensure that all depending Attachables are attached
Configuration previous = configuration();
try {
attach(c);
return execute();
}
finally {
attach(previous);
}
}
@Override