38 *
39 * <p>Note that additional source version constants will be added to
40 * model future releases of the language.
41 *
42 * @author Joseph D. Darcy
43 * @author Scott Seligman
44 * @author Peter von der Ahé
45 * @since 1.6
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 * 1.9: To be determined
59 */
60
61 /**
62 * The original version.
63 *
64 * The language described in
65 * <cite>The Java™ Language Specification, First Edition</cite>.
66 */
67 RELEASE_0,
68
69 /**
70 * The version recognized by the Java Platform 1.1.
71 *
72 * The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
73 * <cite>The Java™ Language Specification, First Edition</cite>.
74 */
75 RELEASE_1,
76
77 /**
78 * The version recognized by the Java 2 Platform, Standard Edition,
|
38 *
39 * <p>Note that additional source version constants will be added to
40 * model future releases of the language.
41 *
42 * @author Joseph D. Darcy
43 * @author Scott Seligman
44 * @author Peter von der Ahé
45 * @since 1.6
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: To be determined
59 */
60
61 /**
62 * The original version.
63 *
64 * The language described in
65 * <cite>The Java™ Language Specification, First Edition</cite>.
66 */
67 RELEASE_0,
68
69 /**
70 * The version recognized by the Java Platform 1.1.
71 *
72 * The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
73 * <cite>The Java™ Language Specification, First Edition</cite>.
74 */
75 RELEASE_1,
76
77 /**
78 * The version recognized by the Java 2 Platform, Standard Edition,
|