Author: schor Date: Tue Apr 15 19:44:35 2014 New Revision: 1587709 URL: http://svn.apache.org/r1587709 Log: [UIMA-2373] Support the case where a reinitialization happens with a different set of delegates
Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java?rev=1587709&r1=1587708&r2=1587709&view=diff ============================================================================== --- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java (original) +++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java Tue Apr 15 19:44:35 2014 @@ -86,6 +86,7 @@ public class FixedFlowController extends if (getContext() == aContext) { return; // only do initialize once per instance of this and same context } + mSequence.clear(); // not cleared for multiple init calls (perhaps on multiple threads) with the same context super.initialize(aContext); FlowConstraints flowConstraints = aContext.getAggregateMetadata().getFlowConstraints(); if (flowConstraints instanceof FixedFlow) {