notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1576 - development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic
- From: niclas AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1576 - development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic
- Date: Mon, 24 Jan 2005 11:36:11 +0100
Author: niclas
Date: Mon Jan 24 11:36:11 2005
New Revision: 1576
Modified:
development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic/StateMachineImpl.java
Log:
Forgot to change the InternalError to an Exception, as this also happens if
the state is an End state.
Modified:
development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic/StateMachineImpl.java
==============================================================================
---
development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic/StateMachineImpl.java
(original)
+++
development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic/StateMachineImpl.java
Mon Jan 24 11:36:11 2005
@@ -64,10 +64,11 @@
{
Collection bucket = (Collection) m_crossIndex.get(
m_currentState );
if( bucket == null )
- { // if the returned bucket is null, it means there is an
internal
- // error, as it should not be possible to set the current state
- // to a state that is not part of the statemachine.
- throw new InternalError( "Current state is corrupt:" +
m_currentState );
+ {
+ // This means that the current state does not have an exit
+ // transition, i.e. it is an end state on which a trigger is
issued.
+ // Question is; Is this an Exception or just silent return?
+ throw new IllegalStateException( "Current state is an End
state:" + m_currentState );
}
Iterator iterator = bucket.iterator();
while( iterator.hasNext() )
- svn commit: r1576 - development/laboratory/planet/components/fsm/basic/src/main/net/dpml/fsm/basic, niclas, 01/24/2005
Archive powered by MHonArc 2.6.24.