Home

Release notes

Known bug:

3.0.4 (05/29/2024)

Changes:

  • Updates junit to 4.13.2.
  • Fixes some Sonar issues.

Bug fixes:

  • Bugs in Operator: Constructor threw NullPointerException instead of IllegalArgumentException. Equals method threw exception or returned false by mistake.
  • Bug in LocalizedEvaluator provided in the examples: Due to a Java breaking change in NumberFormat class, the evaluator did not work anymore at least since java 17 and at least with French locale.

3.0.3 (08/17/2019)

Changes:

  • Adds scientific notation support in DoubleEvaluator.

3.0.2 (12/27/2017)

Bug fix:

  • DoubleEvaluator failed to detect syntax error in expressions like min((10,15),20).

3.0.1 (09/19/2015)

Bug fix:

  • DoubleEvaluator was not thread safe, even when each thread instantiate a new instance.

3.0.0 (05/27/2014)

Changes:

  • Because of the changes in AbstractEvaluator.tokenize method, this version is not totally compatible with previous ones. In particular, implementations that have overloaded AbstractEvaluator.tokenize method might not work.
  • In order to have a clearer definition of the roles of the AbstractEvaluator.tokenize method, the following changes have been made, making now this method fully responsible for turning the evaluated expression into tokens:
    • The tokens returned by AbstractEvaluator.tokenize method are no more trimmed by the evaluator.
    • The empty tokens returned by AbstractEvaluator.tokenize method are no more ignored by the evaluator.
    • The Tokenizer constructor is now public.

Bug fix:

  • Fix "-" operator in BooleanSetEvaluator example.

2.0.0 (11/01/2013)

Changes:

  • Change package name to com.fathzer.soft.javaluator in order to release the package to Maven central. Because of this change, this version is not compatible with previous ones.

1.2.4 (07/20/2013)

Bug fix:

  • Fixes java.util.regex.PatternSyntaxException while evaluating an expression with an evaluator that accepts, for instance, only "or" and "and" operators.

1.2.3 (02/02/2013)

Bug fix:

  • Evaluate an expression that starts with a function argument separator caused a NullPointerException.

1.2.2 (12/09/2012)

Bug fixes:

  • Evaluate the expression ")" caused a NullPointerException.
  • The DoubleEvaluator considered numbers followed by "d" or "f" as valid ones.

1.2.1 (11/22/2012)

Changes:

  • Adds getDefaultParameters(Style) method to DoubleEvaluator. When passing Style.EXCEL_LIKE, to the DoubleEvaluator constructor, -2^2 is interpreted as 4, like in Excel or Bash scripts.

Bug fix:

  • Revert the precedence of unary minus and exponentiation operators in DoubleEvaluator to the standard one, where -2^2=-4.

1.2.0 (11/20/2012)

Changes:

  • Adds protected method tokenize(String) in AbstractEvaluator.

Bug fix:

  • Fixes precedence of unary minus and exponentiation operators in DoubleEvaluator. Previously it returned -4 when evaluating -2^2, where bash shell (for example) returns 4.

1.1.0 (09/01/2012)

Changes:

  • Support for operators with length > 1 (example &&, ||, ==)

1.0.0 (08/28/2012)

Changes:

  • This is the first Javaluator official release.
Advertising

Back to top