8230847: Trees.getScope may crash when invoked for statement inside switch.
Summary: More thoroughly avoiding side-effects when attributing (to) for Trees.getScope.
Reviewed-by: mcimadamore
Welcome to the JDK!
===================
For information about building the JDK, including how to retrieve all
of the source code, please see either of these files:
* doc/building.html (html version)
* doc/building.md (markdown version)
See http://openjdk.java.net/ for more information about the OpenJDK
Community and the JDK.