I've added it to the errata. This is tricky. In the
Java 8 version of the book, we often treated local variables and method parameters as if they were the same. Both have the same rules for garbage collection and variable scope. (page 59 is in the variable scope section).
However, in Java 11, we also cover local variable type inference. (this is on page 57 among other places). With local variable type inference, it actually has to be a local variable so this distinction now matters.
Good catch Riffath!