[GREENFOOT-318] "Save the World" recording doesn't handle varargs methods correctly
Create an actor with the following method:
{noformat} public void varArgsMethod(String [] ... arr) {
}
{noformat}
Add an actor to the world and call the method with the following argument: {{ {"one","two"} }}. Then "Save the world". The generated code doesn't compile; it says:
{noformat} tree.varArgsMethod(new java.lang.String[][] {"one","two"}); {noformat}
Also, call the method again and supply two arguments as follows:
{{ {"one"} }}, {{ {"two"} }}
An exception is thrown upon attempting to save the world.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.4.0