JDK-4725650 : Restrict scope of local classes in switch-block-group
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
As per JDK-4695057, the scope of a local class name whose declaration is a
declaration-statement of a switch-block-group
should not extend into the following switch-block-groups.
See JDK-4713250 for the underlying spec issue.
BugTraq+ Release Management Values
COMMIT TO FIX:
See the description and 4695057.
This is one area where the spec was conveniently vague.