alibaba / alibaba/arthas

不支持Stream流

Open
#2,902 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

[arthas@13645]$ ognl -x 3 '@Cache@getMap().values().stream().filter(it -> it.getTtl().equals("1800")).collect(Collectors.toList())' -c 3670f00
Failed to execute ognl, exception message: ognl.ExpressionSyntaxException: Malformed OGNL expression: @Cache@getMap().values().stream().filter(it -> it.getTtl().equals("1800")).collect(Collectors.toList()) [ognl.ParseException: Encountered " ">" "> "" at line 1, column 133.
Was expecting one of:
":" ...
"not" ...
"+" ...
"-" ...
"~" ...
"!" ...
"(" ...
"true" ...
"false" ...
"null" ...
"#this" ...
"#root" ...
"#" ...
"[" ...
"{" ...
"@" ...
"new" ...
...
...
"\'" ...
"`" ...
"\"" ...
...
...
], please check $HOME/logs/arthas/arthas.log for more details.
[arthas@13645]$

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `ognl` command with the Stream and lambda expression shown in the issue, then trace how the OGNL expression is parsed and evaluated. Done means the command accepts this expression and returns the filtered list without the reported syntax error, with relevant validation for the supported syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.