commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] Created: (JEXL-83) Make JexlArithmetic immutable (and threadsafe)
Date Thu, 13 Aug 2009 13:46:14 GMT
Make JexlArithmetic immutable (and threadsafe)

                 Key: JEXL-83
             Project: Commons JEXL
          Issue Type: Improvement
            Reporter: Sebb
             Fix For: Later

The JexlArithmetic class is currently not thread-safe because of the single field:

    /** Whether this JexlArithmetic instance behaves in strict or lenient mode. */
    protected boolean strict;

If this field were made final, and the setLenient() method removed, then the class would be
immutable and therefore thread-safe.

This would mean that JexlEngine would also have to change.

The class is new to 2.0, so this is the best time to fix this.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message