# HG changeset patch # User darcy # Date 1372358783 25200 # Node ID 065f8cb7bd89cc7f1513c69880d891807e9e8821 # Parent 26437287529de2f2799a065f6defa80da5f5b5d8 8019308: Add descriptions of Java SE 7 and 8 language changes to SourceVersion Reviewed-by: jjg diff -r 26437287529d -r 065f8cb7bd89 src/share/classes/javax/lang/model/SourceVersion.java --- a/src/share/classes/javax/lang/model/SourceVersion.java Thu Jun 27 17:47:18 2013 +0200 +++ b/src/share/classes/javax/lang/model/SourceVersion.java Thu Jun 27 11:46:23 2013 -0700 @@ -53,6 +53,8 @@ * 1.4: assert * 1.5: annotations, generics, autoboxing, var-args... * 1.6: no changes + * 1.7: diamond syntax, try-with-resources, etc. + * 1.8: lambda expressions and default methods */ /** @@ -122,6 +124,9 @@ * The version recognized by the Java Platform, Standard Edition * 7. * + * Additions in this release include, diamond syntax for + * constructors, {@code try}-with-resources, strings in switch, + * binary literals, and multi-catch. * @since 1.7 */ RELEASE_7, @@ -130,6 +135,7 @@ * The version recognized by the Java Platform, Standard Edition * 8. * + * Additions in this release include lambda expressions and default methods. * @since 1.8 */ RELEASE_8;