Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译异常能否细分 #552

Open
lonelystone545 opened this issue Jun 26, 2023 · 0 comments
Open

编译异常能否细分 #552

lonelystone545 opened this issue Jun 26, 2023 · 0 comments

Comments

@lonelystone545
Copy link

大佬你好, 我们在使用aviator表达式编译时时, 如果有异常会手动缓存下来, 避免有问题的表达式重复编译, 给gc造成较大的压力. 目前表达式编译抛出的是CompileExpressionErrorException, 但是在有些场景下如果触发了线程中断,futuretask会响应中断, 也会抛这个异常, 导致我们错误的缓存了这个表达式. 本质上我们期望缓存的是因表达式自身有问题的那部分, 即词法语法解析异常的部分, 其他的异常不应该缓存. 所以aviator编译时抛的异常能否细分?(ExpressionSyntaxErrorException这个异常是否能表示表达式自身存在问题的)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant