commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Blinov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JEXL-203) JexlArithmetic.options() diverts Interpreter to use default implementation of JexlArithmetic instead of custom one
Date Wed, 06 Jul 2016 08:19:11 GMT
Dmitri Blinov created JEXL-203:
----------------------------------

             Summary: JexlArithmetic.options() diverts Interpreter to use default implementation
of JexlArithmetic instead of custom one
                 Key: JEXL-203
                 URL: https://issues.apache.org/jira/browse/JEXL-203
             Project: Commons JEXL
          Issue Type: Bug
            Reporter: Dmitri Blinov


If JexlContext implements JexlEngine.Options and it provides values for strictness, scale
and MathContext that are different from what was specified during creation of JexlArithmetics,
then instance of wrong JexlArithmetic class is created instead of custom class previously
used. Apparently the JexlArithmetic.options() method could then be overloaded in custom class,
but I don't like the idea of copying all that code from version to version, so may be more
robust solution could be found to this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message