8223443: Calling Trees.getScope early changes names of local/anonymous classes

Ensure Trees.getScope does not affect the rest of the compilation.

Reviewed-by: mcimadamore
6 files changed