Evaluate call of a static method

Hello,

is it possible to evaluate the call of static method ?
For example :

x = "myclass::theMethod()";
evaluate(x); // ====> invalid Expression !!!

I didn’t find any syntax that works.

I don’t know the answer to your specific question, but I do know the expression evlauator in the evaluate() function is NOT the same as rest of the language in Lucee and only supports a subset of expressions. I found this out when using it for the CommandBox REPL. Therefore, I’d guess this is what’s biting you here. Micha has always said he needs to convert evaluate to use the main language’s parser, but it hasn’t happened for years now. MIcha changed my bug to a “bug” to a “task” because he says it was “never expected to work” :roll_eyes:

Related tickets:
https://luceeserver.atlassian.net/browse/LDEV-1637
https://luceeserver.atlassian.net/browse/LDEV-1711