修复MVEL加载错误问题

This commit is contained in:
Looly 2023-07-20 08:41:23 +08:00
parent 47cba89085
commit a74a8c7877
3 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,7 @@
* 【core 】 修复脱敏银行卡号长度bugpr#3210@Github
* 【jwt 】 修复JWTSignerUtil中ES256签名不符合规范问题issue#3205@Github
* 【core 】 修复UserInfo获取country问题issue#I7MCKW@Gitee
* 【extra 】 修复MVEL加载错误问题issue#3214@Github
-------------------------------------------------------------------------------------------------------------
# 5.8.20(2023-06-16)

View File

@ -1,6 +1,5 @@
package cn.hutool.core.math;
import cn.hutool.core.lang.Console;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil;

View File

@ -18,10 +18,15 @@ public class MvelEngine implements ExpressionEngine {
* 构造
*/
public MvelEngine(){
checkEngineExist(null);
}
@Override
public Object eval(String expression, Map<String, Object> context) {
return MVEL.eval(expression, context);
}
private void checkEngineExist(MVEL mvel){
// do nothing
}
}