We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Test public void testFunction2() throws Exception { ExpressRunner runner = new ExpressRunner(); String exp = "System.out.println(args[0]);"; String[] args = {"123","456"}; IExpressContext<String, Object> context = new DefaultContext<String, Object>(); ((DefaultContext<String, Object>) context).put("args", args); Object result = runner.execute(exp,context,null,false,false); }
发现上面这段代码在实际运行时调用的方法是 public void java.io.PrintStream.println(java.lang.Object) 却不是 public void java.io.PrintStream.println(java.lang.String) debug时发现findMethod的type是class [Ljava.lang.String; 请问这是一个bug还是开发时特意保留的特性?
附debug到com.ql.util.express.ExpressUtil#findMethod的debugger截图
The text was updated successfully, but these errors were encountered:
确实是一个数组识别的bug,在数组的识别上有问题。 如果拆成两句是能够正确识别的 String exp = "arg0 = args[0]; System.out.println(arg0);";
Sorry, something went wrong.
Fix bug issues: #43 #37
e2924ca
No branches or pull requests
发现上面这段代码在实际运行时调用的方法是
public void java.io.PrintStream.println(java.lang.Object)
却不是
public void java.io.PrintStream.println(java.lang.String)
debug时发现findMethod的type是class [Ljava.lang.String;
请问这是一个bug还是开发时特意保留的特性?
附debug到com.ql.util.express.ExpressUtil#findMethod的debugger截图
The text was updated successfully, but these errors were encountered: