You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:497)
at java.math.BigDecimal.<init>(BigDecimal.java:827)
at com.udojava.evalex.Expression.setVariable(Expression.java:1804)
at com.udojava.evalex.Expression.with(Expression.java:1923)
at com.udojava.evalex.TestVariables.testIsoDateInString(TestVariables.java:119)
The issue seems to be that Expression.isNumber() returns true and creating a BigDecimal from the string fails.
Please note that this issue occurs on the current 2.x branch.
The text was updated successfully, but these errors were encountered:
chkal
added a commit
to chkal/EvalEx
that referenced
this issue
Sep 30, 2022
Thank you, but I think I will not fix this on the old 2.x branch. Anyone who needs to add strings to expressions should upgrade to version 3. It has full string support and will probably also have date and time support in the future.
If you have code like this:
The following exception is thrown:
The issue seems to be that
Expression.isNumber()
returnstrue
and creating aBigDecimal
from the string fails.Please note that this issue occurs on the current
2.x
branch.The text was updated successfully, but these errors were encountered: