最近在用drools,想对一些对象做一些特殊的检查。我需要在规则的when部分使用函数,但出现错误。示例:functionbooleannewFunction(inta){if(a>0)returntrue;elsereturnfalse;}rule"newrule"salience100dialect"mvel"wheneval(newFunction(1))thenSystem.out.println("OK");end我总是得到的错误是:unabletoresolvemethodusingstrict-mode:java.lang.Object.newFunction(java.