commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Gulatee (JIRA)" <j...@apache.org>
Subject [jira] Created: (SCXML-113) Log not initialized in 2 of 4 AbstractStateMachine constructors.
Date Fri, 20 Nov 2009 19:49:39 GMT
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


"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 &quot;lifecycle&quot; 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 &quot;lifecycle&quot; 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.


Mime
View raw message