< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java

Print this page




 171         STATIC_INTERFACE_METHODS_INVOKE(JDK8, Fragments.FeatureStaticIntfMethodInvoke, DiagKind.PLURAL),
 172         STRICT_METHOD_CLASH_CHECK(JDK8),
 173         EFFECTIVELY_FINAL_IN_INNER_CLASSES(JDK8),
 174         TYPE_ANNOTATIONS(JDK8, Fragments.FeatureTypeAnnotations, DiagKind.PLURAL),
 175         ANNOTATIONS_AFTER_TYPE_PARAMS(JDK8, Fragments.FeatureAnnotationsAfterTypeParams, DiagKind.PLURAL),
 176         REPEATED_ANNOTATIONS(JDK8, Fragments.FeatureRepeatableAnnotations, DiagKind.PLURAL),
 177         INTERSECTION_TYPES_IN_CAST(JDK8, Fragments.FeatureIntersectionTypesInCast, DiagKind.PLURAL),
 178         GRAPH_INFERENCE(JDK8),
 179         FUNCTIONAL_INTERFACE_MOST_SPECIFIC(JDK8),
 180         POST_APPLICABILITY_VARARGS_ACCESS_CHECK(JDK8),
 181         MAP_CAPTURES_TO_BOUNDS(MIN, JDK7),
 182         PRIVATE_SAFE_VARARGS(JDK9),
 183         DIAMOND_WITH_ANONYMOUS_CLASS_CREATION(JDK9, Fragments.FeatureDiamondAndAnonClass, DiagKind.NORMAL),
 184         UNDERSCORE_IDENTIFIER(MIN, JDK8),
 185         PRIVATE_INTERFACE_METHODS(JDK9, Fragments.FeaturePrivateIntfMethods, DiagKind.PLURAL),
 186         LOCAL_VARIABLE_TYPE_INFERENCE(JDK10),
 187         VAR_SYNTAX_IMPLICIT_LAMBDAS(JDK11, Fragments.FeatureVarSyntaxInImplicitLambda, DiagKind.PLURAL),
 188         IMPORT_ON_DEMAND_OBSERVABLE_PACKAGES(JDK1_2, JDK8),
 189         SWITCH_MULTIPLE_CASE_LABELS(JDK13, Fragments.FeatureMultipleCaseLabels, DiagKind.PLURAL),
 190         SWITCH_RULE(JDK13, Fragments.FeatureSwitchRules, DiagKind.PLURAL),
 191         SWITCH_EXPRESSION(JDK13, Fragments.FeatureSwitchExpressions, DiagKind.PLURAL);

 192 
 193         enum DiagKind {
 194             NORMAL,
 195             PLURAL;
 196         }
 197 
 198         private final Source minLevel;
 199         private final Source maxLevel;
 200         private final Fragment optFragment;
 201         private final DiagKind optKind;
 202 
 203         Feature(Source minLevel) {
 204             this(minLevel, null, null);
 205         }
 206 
 207         Feature(Source minLevel, Fragment optFragment, DiagKind optKind) {
 208             this(minLevel, MAX, optFragment, optKind);
 209         }
 210 
 211         Feature(Source minLevel, Source maxLevel) {




 171         STATIC_INTERFACE_METHODS_INVOKE(JDK8, Fragments.FeatureStaticIntfMethodInvoke, DiagKind.PLURAL),
 172         STRICT_METHOD_CLASH_CHECK(JDK8),
 173         EFFECTIVELY_FINAL_IN_INNER_CLASSES(JDK8),
 174         TYPE_ANNOTATIONS(JDK8, Fragments.FeatureTypeAnnotations, DiagKind.PLURAL),
 175         ANNOTATIONS_AFTER_TYPE_PARAMS(JDK8, Fragments.FeatureAnnotationsAfterTypeParams, DiagKind.PLURAL),
 176         REPEATED_ANNOTATIONS(JDK8, Fragments.FeatureRepeatableAnnotations, DiagKind.PLURAL),
 177         INTERSECTION_TYPES_IN_CAST(JDK8, Fragments.FeatureIntersectionTypesInCast, DiagKind.PLURAL),
 178         GRAPH_INFERENCE(JDK8),
 179         FUNCTIONAL_INTERFACE_MOST_SPECIFIC(JDK8),
 180         POST_APPLICABILITY_VARARGS_ACCESS_CHECK(JDK8),
 181         MAP_CAPTURES_TO_BOUNDS(MIN, JDK7),
 182         PRIVATE_SAFE_VARARGS(JDK9),
 183         DIAMOND_WITH_ANONYMOUS_CLASS_CREATION(JDK9, Fragments.FeatureDiamondAndAnonClass, DiagKind.NORMAL),
 184         UNDERSCORE_IDENTIFIER(MIN, JDK8),
 185         PRIVATE_INTERFACE_METHODS(JDK9, Fragments.FeaturePrivateIntfMethods, DiagKind.PLURAL),
 186         LOCAL_VARIABLE_TYPE_INFERENCE(JDK10),
 187         VAR_SYNTAX_IMPLICIT_LAMBDAS(JDK11, Fragments.FeatureVarSyntaxInImplicitLambda, DiagKind.PLURAL),
 188         IMPORT_ON_DEMAND_OBSERVABLE_PACKAGES(JDK1_2, JDK8),
 189         SWITCH_MULTIPLE_CASE_LABELS(JDK13, Fragments.FeatureMultipleCaseLabels, DiagKind.PLURAL),
 190         SWITCH_RULE(JDK13, Fragments.FeatureSwitchRules, DiagKind.PLURAL),
 191         SWITCH_EXPRESSION(JDK13, Fragments.FeatureSwitchExpressions, DiagKind.PLURAL),
 192         RECORDS(JDK13);
 193 
 194         enum DiagKind {
 195             NORMAL,
 196             PLURAL;
 197         }
 198 
 199         private final Source minLevel;
 200         private final Source maxLevel;
 201         private final Fragment optFragment;
 202         private final DiagKind optKind;
 203 
 204         Feature(Source minLevel) {
 205             this(minLevel, null, null);
 206         }
 207 
 208         Feature(Source minLevel, Fragment optFragment, DiagKind optKind) {
 209             this(minLevel, MAX, optFragment, optKind);
 210         }
 211 
 212         Feature(Source minLevel, Source maxLevel) {


< prev index next >