JDK 13 RFR of JDK-8225532: Upddate source enums to describe 12 and 13 language features
Jonathan Gibbons
jonathan.gibbons at oracle.com
Mon Jun 10 22:55:11 UTC 2019
+1
semicolons for the win!
On 06/10/2019 02:25 PM, Joseph D. Darcy wrote:
> Responding to some off-list feedback,
>
> On 6/10/2019 10:48 AM, Joe Darcy wrote:
>>
>> /**
>> diff -r 4cf21c5c956a
>> src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
>> ---
>> a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
>> Mon Jun 10 09:41:09 2019 -0700
>> +++
>> b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java
>> Mon Jun 10 10:47:48 2019 -0700
>> @@ -84,10 +84,13 @@
>> /** 1.11 local-variable syntax for lambda parameters */
>> JDK11("11"),
>>
>> - /** 12 covers the to be determined language features that will
>> be added in JDK 12. */
>> + /** 12, no language features, switch expression were in preview */
>> JDK12("12"),
>>
>> - /** 13 covers the to be determined language features that will
>> be added in JDK 13. */
>> + /**
>> + * 13, no language features, revised switch expressions in preview
>> + * along with text blocks
>> + */
>> JDK13("13");
>
> Will upgrade the comma to a semi-colon:
>
> " 12, no language features; switch expression were in preview"
> "13, no language features; text blocks and revised switch
> expressions in preview
>
> Thanks,
>
> -Joe
More information about the compiler-dev
mailing list