You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2010/01/15 23:14:55 UTC
[jira] Resolved: (SCXML-113) Log not initialized in 2 of 4
AbstractStateMachine constructors.
[ https://issues.apache.org/jira/browse/SCXML-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar resolved SCXML-113.
---------------------------------
Resolution: Duplicate
Resolving as a duplicate of SCXML-104 which has already been fixed in SVN and will be included in the next release.
> Log not initialized in 2 of 4 AbstractStateMachine constructors.
> ----------------------------------------------------------------
>
> Key: SCXML-113
> URL: https://issues.apache.org/jira/browse/SCXML-113
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.9
> Reporter: Eric Gulatee
> Priority: Blocker
> Fix For: 0.10, 1.0
>
>
> "Log" in AbstractStateMachine is NOT initialized if using either of these two constructors.
> This causes a NPE if a failure occurs while initializing the state machine.
> /**
> * Convenience constructor.
> *
> * @param stateMachine The parsed SCXML instance that
> * describes the "lifecycle" of the
> * instances of this class.
> *
> * @since 0.7
> */
> public AbstractStateMachine(final SCXML stateMachine) {
> // default is JEXL
> this(stateMachine, new JexlContext(), new JexlEvaluator());
> }
> /**
> * Primary constructor.
> *
> * @param stateMachine The parsed SCXML instance that
> * describes the "lifecycle" of the
> * instances of this class.
> * @param rootCtx The root context for this instance.
> * @param evaluator The expression evaluator for this instance.
> *
> * @see Context
> * @see Evaluator
> *
> * @since 0.7
> */
> public AbstractStateMachine(final SCXML stateMachine,
> final Context rootCtx, final Evaluator evaluator) {
> initialize(stateMachine, rootCtx, evaluator);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.