Hallo,
I created the non-silent JexlEngine as follows:
JexlEngine jexl = new JexlBuilder().silent(false).create();
Assuming we have a correct bean path:
"order.billingAddress.city"
When doing:
jexl.createExpression( "order.billingAddress.city" ).evaluate(aJexlContext);
or
jexl.createExpression( "order.billingAddress.city.size()"
).evaluate(aJexlContext);
all expressions are accepted.
When doing
jexl.createExpression( "order.billingAddress.cityXXX" ).evaluate(aJexlContext);
an exception is thrown, which is expected since the filed "cityXXX" doesn't
exist.
When doing
jexl.createExpression( "order.billingAddress.city.sizeXXX()"
).evaluate(aJexlContext);
no exception is thrown! But the method "sizeXXX()" doesn't exist.
What should I do to have an exception also for methods?
Best regards - Thomas Schmidt