fix ognl command not invoke static method. #2892

pull/2600/merge
hengyunabc 5 months ago
parent 9079a0c314
commit e1264657d3

@ -102,7 +102,8 @@ public class OgnlCommand extends AnnotatedCommand {
Express unpooledExpress = ExpressFactory.unpooledExpress(classLoader);
try {
Object value = unpooledExpress.get(express);
// https://github.com/alibaba/arthas/issues/2892
Object value = unpooledExpress.bind(new Object()).get(express);
OgnlModel ognlModel = new OgnlModel()
.setValue(new ObjectVO(value, expand));
process.appendResult(ognlModel);

Loading…
Cancel
Save