8225532: Update source enums to describe 12 and 13 language features
Reviewed-by: jjg
--- a/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java Mon Jun 10 15:55:11 2019 -0700
+++ b/src/java.compiler/share/classes/javax/lang/model/SourceVersion.java Mon Jun 10 15:53:35 2019 -0700
@@ -58,8 +58,8 @@
* 9: modules, small cleanups to 1.7 and 1.8 changes
* 10: local-variable type inference (var)
* 11: local-variable syntax for lambda parameters
- * 12: no changes (switch expressions in preview)
- * 13: TBD
+ * 12: no changes (switch expressions were in preview)
+ * 13: no changes (switch expressions and text blocks in preview)
*/
/**
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java Mon Jun 10 15:55:11 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java Mon Jun 10 15:53:35 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -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; text blocks and revised switch
+ * expressions in preview
+ */
JDK13("13");
private static final Context.Key<Source> sourceKey = new Context.Key<>();