CallerFrameContainsCalleeFormal
DRAFT

Misconception:

When invoking a method, the caller’s stack frame must contain a variable for each formal parameter of the callee.

Incorrect

Stack frame of caller includes variables for callee's formal parameters

Correct

Correction
Here is what's right.

This misconception probably comes from using IDEs that show (in a small font) the names of formal parameters in front of the actual arguments).

void register(String name, int age) {...}
...
register(name: "Matthias", age: 1);

Above, “name” and “age” are shown by an IDE, but they are not actually in the source code.

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.