Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#327 public void test(String... msgs) can not be compiled

open
nobody
Parsing (77)
5
2009-06-23
2009-06-23
yin biaoping
No

public void test(String... msgs) can not be compiled

Parse error at line 2, column 28. Encountered: .
at bsh.Parser.generateParseException(Unknown Source)
at bsh.Parser.jj_consume_token(Unknown Source)
at bsh.Parser.FormalParameter(Unknown Source)
at bsh.Parser.FormalParameters(Unknown Source)
at bsh.Parser.MethodDeclaration(Unknown Source)
at bsh.Parser.BlockStatement(Unknown Source)
at bsh.Parser.Block(Unknown Source)
at bsh.Parser.ClassDeclaration(Unknown Source)
at bsh.Parser.BlockStatement(Unknown Source)
at bsh.Parser.Line(Unknown Source)
at bsh.Interpreter.Line(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)

the script is follow:
class TestRoute {
public void test(String... msgs) {}
public void configure() {
test(new String[]{"111","111"});
}
}

Discussion