Switch expressions spec
gavin.bierman at oracle.com
Wed Feb 27 12:43:15 UTC 2019
I have uploaded a revised switch expressions spec at:
This is functionally equivalent to the spec uploaded last month. The change is in how we specify the type checking of switch expressions. We have make simplifications to make it more consistent with the specification of conditional expressions. The behaviour of type checking is unchanged.
PS: I have left the January version at http://cr.openjdk.java.net/~gbierman/switch-expressions-old.html for reference.
> On 17 Jan 2019, at 10:14, Gavin Bierman <gavin.bierman at oracle.com> wrote:
> Thank you Alex and Tagir. I have uploaded a new version of the spec at:
> This contains all the changes you suggested below. In addition, there is a small bug fix in 5.6.3 concerning widening (https://bugs.openjdk.java.net/browse/JDK-8213180). I have also taken the opportunity to reorder chapter 15 slightly, so switch expressions are now section 15.28 and constant expressions are now section 15.29 (the last section in the chapter).
> Comments welcome!
More information about the amber-spec-observers