< prev index next >

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java

Print this page




  46  */
  47 public enum SourceVersion {
  48     /*
  49      * Summary of language evolution
  50      * 1.1: nested classes
  51      * 1.2: strictfp
  52      * 1.3: no changes
  53      * 1.4: assert
  54      * 1.5: annotations, generics, autoboxing, var-args...
  55      * 1.6: no changes
  56      * 1.7: diamond syntax, try-with-resources, etc.
  57      * 1.8: lambda expressions and default methods
  58      *   9: modules, small cleanups to 1.7 and 1.8 changes
  59      *  10: local-variable type inference (var)
  60      *  11: local-variable syntax for lambda parameters
  61      *  12: no changes (switch expressions were in preview)
  62      *  13: no changes (switch expressions and text blocks in preview)
  63      *  14: TBD
  64      */
  65 






  66     /**
  67      * The original version.
  68      *
  69      * The language described in
  70      * <cite>The Java&trade; Language Specification, First Edition</cite>.
  71      */
  72     RELEASE_0,
  73 
  74     /**
  75      * The version recognized by the Java Platform 1.1.
  76      *
  77      * The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
  78      * <cite>The Java&trade; Language Specification, First Edition</cite>.
  79      */
  80     RELEASE_1,
  81 
  82     /**
  83      * The version recognized by the Java 2 Platform, Standard Edition,
  84      * v 1.2.
  85      *




  46  */
  47 public enum SourceVersion {
  48     /*
  49      * Summary of language evolution
  50      * 1.1: nested classes
  51      * 1.2: strictfp
  52      * 1.3: no changes
  53      * 1.4: assert
  54      * 1.5: annotations, generics, autoboxing, var-args...
  55      * 1.6: no changes
  56      * 1.7: diamond syntax, try-with-resources, etc.
  57      * 1.8: lambda expressions and default methods
  58      *   9: modules, small cleanups to 1.7 and 1.8 changes
  59      *  10: local-variable type inference (var)
  60      *  11: local-variable syntax for lambda parameters
  61      *  12: no changes (switch expressions were in preview)
  62      *  13: no changes (switch expressions and text blocks in preview)
  63      *  14: TBD
  64      */
  65 
  66     // TOOD: The textual specs of isIdentifier, isName, and isKeyword
  67     // may or may not need to be explicitly updated for "record" and
  68     // "sealed" depending on how those tokens are formally handled in
  69     // the JLS. If they are treated as restricted keywords, a spec
  70     // update may not be strictly needed.
  71 
  72     /**
  73      * The original version.
  74      *
  75      * The language described in
  76      * <cite>The Java&trade; Language Specification, First Edition</cite>.
  77      */
  78     RELEASE_0,
  79 
  80     /**
  81      * The version recognized by the Java Platform 1.1.
  82      *
  83      * The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
  84      * <cite>The Java&trade; Language Specification, First Edition</cite>.
  85      */
  86     RELEASE_1,
  87 
  88     /**
  89      * The version recognized by the Java 2 Platform, Standard Edition,
  90      * v 1.2.
  91      *


< prev index next >