JDK 14 RFR of JDK-8233096: Update javax.lang.model for switch expressions

Joe Darcy joe.darcy at oracle.com
Thu Nov 14 01:04:18 UTC 2019


Switch expressions can be used except in portions of the platform 
compiled by the bootstrap compiler, mostly the java.compiler and 
jdk.compiler modules.

HTH,

-Joe

On 11/13/2019 4:30 PM, Sergey Bylokhov wrote:
> Just curious does it mean that now it is possible to use "switch 
> expressions"
> in the libraries of the JDK itself? or we need to wait JDK 15?
>
> On 10/29/19 9:58 am, Joe Darcy wrote:
>> Hello,
>>
>> After switch expressions are added as a full non-preview feature 
>> (JDK-8232684), portions of javax.lang.model should be updated 
>> accordingly, including the description of SourceVersion.RELEASE_14.
>>
>> Please review the changes for this:
>>
>>      http://cr.openjdk.java.net/~darcy/8233096.0/
>>
>> Thanks,
>>
>> -Joe
>>
>
>


More information about the compiler-dev mailing list