Skip to content

Commit

Permalink
fix ognl command not invoke static method. #2892
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Sep 10, 2024
1 parent 9079a0c commit e126465
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public void process(CommandProcess process) {

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);
Expand Down

0 comments on commit e126465

Please sign in to comment.