Bad case in Basic example
Joey777210 opened this issue · 4 comments
Joey777210 commented
Joey777210 commented
Joey777210 commented
And also, how can I use evaluate on pure int
type expression?
aunkrig commented
That example code doesn't work since Janino 3.0.16, when I changed the signature of
org.codehaus.commons.compiler.IExpressionEvaluator.evaluate(int idx, @Nullable Object[] arguments)
to
org.codehaus.commons.compiler.IExpressionEvaluator.evaluate(int idx, @Nullable Object... arguments)
, assuming that this is a compatible API change. (As you proved, it is not.)
Because it is not easily possible to revert that API change without breaking application code, I fixed the code example instead.
Thank you for reporting the problem! Please re-test.
Joey777210 commented
That looks fine, Thanks.