Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0ED1F9C32 for ; Wed, 14 Dec 2011 09:33:11 +0000 (UTC) Received: (qmail 16927 invoked by uid 500); 14 Dec 2011 09:33:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 16012 invoked by uid 500); 14 Dec 2011 09:33:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 15605 invoked by uid 99); 14 Dec 2011 09:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 09:33:01 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 09:32:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 83DE0112B1C for ; Wed, 14 Dec 2011 09:32:31 +0000 (UTC) Date: Wed, 14 Dec 2011 09:32:31 +0000 (UTC) From: "Sebb (Closed) (JIRA)" To: issues@commons.apache.org Message-ID: <2115719242.10315.1323855151541.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (JEXL-83) Make JexlArithmetic immutable (and threadsafe) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JEXL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb closed JEXL-83. -------------------- > Make JexlArithmetic immutable (and threadsafe) > ---------------------------------------------- > > Key: JEXL-83 > URL: https://issues.apache.org/jira/browse/JEXL-83 > Project: Commons JEXL > Issue Type: Improvement > Reporter: Sebb > Assignee: Henri Biestro > Fix For: 2.1 > > Attachments: JEXL-83.patch > > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira