Open hengyunabc opened 2 weeks ago
https://github.com/alibaba/arthas/pull/2658 引入的Bug。 @Allan-QLB
下面这两个命令都会识别为重定向:
watch demo.MathGame '<init>' watch demo.MathGame <init>
@Test public void testSeparateRedirect2() { String[] expectedTextTokenValue = new String[]{"watch", "demo.MathGame", "<init>"}; String cmd = "watch demo.MathGame '<init>'"; List<CliToken> actualTokens = CliTokenImpl.tokenize(cmd); assertEqualsIgnoreBlank(expectedTextTokenValue, actualTokens); Assert.assertEquals(cmd, concatRaw(actualTokens)); }
目前没有太好的修复办法,需要整体重构 token 的解析。考虑先把 https://github.com/alibaba/arthas/pull/2658 revert 。
https://github.com/alibaba/arthas/pull/2658 引入的Bug。 @Allan-QLB
下面这两个命令都会识别为重定向: