Commit a3518eed authored by ehuelsmann@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar ehuelsmann@1c010e3e-69d0-11dd-93a8-456734b0d56f
Browse files

Assign fields the value of the arguments, instead of the values of

the fields themselves. Fixes Wrong number of arguments error message.
parent 2c208485
...@@ -52,8 +52,8 @@ public final class WrongNumberOfArgumentsException extends ProgramError ...@@ -52,8 +52,8 @@ public final class WrongNumberOfArgumentsException extends ProgramError
// own Java class as a convenience for the implementation. // own Java class as a convenience for the implementation.
super(StandardClass.PROGRAM_ERROR); super(StandardClass.PROGRAM_ERROR);
this.operator = operator; this.operator = operator;
this.expectedMinArgs = expectedMinArgs; this.expectedMinArgs = expectedMin;
this.expectedMaxArgs = expectedMaxArgs; this.expectedMaxArgs = expectedMax;
setFormatControl(getMessage()); setFormatControl(getMessage());
setFormatArguments(NIL); setFormatArguments(NIL);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment