8285688: Add links to JEPs and JSRs to SourceVersion

Reviewed-by: vromero, jjg, iris
This commit is contained in:
Joe Darcy 2022-04-29 01:05:26 +00:00
parent 80cf59ff0b
commit e2e943adcb

View File

@ -109,6 +109,9 @@ public enum SourceVersion {
* v 1.4.
*
* Added a simple assertion facility.
*
* @see <a href="https://jcp.org/en/jsr/detail?id=41">
* JSR 41: A Simple Assertion Facility</a>
*/
RELEASE_4,
@ -121,6 +124,14 @@ public enum SourceVersion {
* Third Edition</cite>. First release to support
* generics, annotations, autoboxing, var-args, enhanced {@code
* for} loop, and hexadecimal floating-point literals.
*
* @see <a href="https://jcp.org/en/jsr/detail?id=14">
* JSR 14: Add Generic Types To The Java&trade; Programming Language</a>
* @see <a href="https://jcp.org/en/jsr/detail?id=175">
* JSR 175: A Metadata Facility for the Java&trade; Programming Language</a>
* @see <a href="https://jcp.org/en/jsr/detail?id=201">
* JSR 201: Extending the Java&trade; Programming Language with Enumerations,
* Autoboxing, Enhanced for loops and Static Import</a>
*/
RELEASE_5,
@ -148,6 +159,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se7/html/index.html">
* <cite>The Java Language Specification, Java SE 7 Edition</cite></a>
* @see <a href="https://jcp.org/en/jsr/detail?id=334">
* JSR 334: Small Enhancements to the Java&trade; Programming Language</a>
*/
RELEASE_7,
@ -161,6 +174,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se8/html/index.html">
* <cite>The Java Language Specification, Java SE 8 Edition</cite></a>
* @see <a href="https://jcp.org/en/jsr/detail?id=335">
* JSR 335: Lambda Expressions for the Java&trade; Programming Language</a>
*/
RELEASE_8,
@ -176,6 +191,10 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se9/html/index.html">
* <cite>The Java Language Specification, Java SE 9 Edition</cite></a>
* @see <a href="https://jcp.org/en/jsr/detail?id=376">
* JSR 376: Java&trade; Platform Module System</a>
* @see <a href="https://openjdk.java.net/jeps/213">
* JEP 213: Milling Project Coin</a>
*/
RELEASE_9,
@ -191,6 +210,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se10/html/index.html">
* <cite>The Java Language Specification, Java SE 10 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/286">
* JEP 286: Local-Variable Type Inference</a>
*/
RELEASE_10,
@ -206,6 +227,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se11/html/index.html">
* <cite>The Java Language Specification, Java SE 11 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/323">
* JEP 323: Local-Variable Syntax for Lambda Parameters</a>
*/
RELEASE_11,
@ -246,6 +269,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se14/html/index.html">
* <cite>The Java Language Specification, Java SE 14 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/361">
* JEP 361: Switch Expressions</a>
*/
RELEASE_14,
@ -260,6 +285,8 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se15/html/index.html">
* <cite>The Java Language Specification, Java SE 15 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/378">
* JEP 378: Text Blocks</a>
*/
RELEASE_15,
@ -275,6 +302,10 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se16/html/index.html">
* <cite>The Java Language Specification, Java SE 16 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/394">
* JEP 394: Pattern Matching for instanceof</a>
* @see <a href="https://openjdk.java.net/jeps/395">
* JEP 395: Records</a>
*/
RELEASE_16,
@ -290,6 +321,10 @@ public enum SourceVersion {
* @see <a
* href="https://docs.oracle.com/javase/specs/jls/se17/html/index.html">
* <cite>The Java Language Specification, Java SE 17 Edition</cite></a>
* @see <a href="https://openjdk.java.net/jeps/306">
* JEP 306: Restore Always-Strict Floating-Point Semantics</a>
* @see <a href="https://openjdk.java.net/jeps/409">
* JEP 409: Sealed Classes</a>
*/
RELEASE_17,