< prev index next >

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

Print this page

212         REPEATED_ANNOTATIONS(JDK8, Fragments.FeatureRepeatableAnnotations, DiagKind.PLURAL),
213         INTERSECTION_TYPES_IN_CAST(JDK8, Fragments.FeatureIntersectionTypesInCast, DiagKind.PLURAL),
214         GRAPH_INFERENCE(JDK8),
215         FUNCTIONAL_INTERFACE_MOST_SPECIFIC(JDK8),
216         POST_APPLICABILITY_VARARGS_ACCESS_CHECK(JDK8),
217         MAP_CAPTURES_TO_BOUNDS(MIN, JDK7),
218         PRIVATE_SAFE_VARARGS(JDK9),
219         DIAMOND_WITH_ANONYMOUS_CLASS_CREATION(JDK9, Fragments.FeatureDiamondAndAnonClass, DiagKind.NORMAL),
220         UNDERSCORE_IDENTIFIER(MIN, JDK8),
221         PRIVATE_INTERFACE_METHODS(JDK9, Fragments.FeaturePrivateIntfMethods, DiagKind.PLURAL),
222         LOCAL_VARIABLE_TYPE_INFERENCE(JDK10),
223         VAR_SYNTAX_IMPLICIT_LAMBDAS(JDK11, Fragments.FeatureVarSyntaxInImplicitLambda, DiagKind.PLURAL),
224         IMPORT_ON_DEMAND_OBSERVABLE_PACKAGES(JDK1_2, JDK8),
225         SWITCH_MULTIPLE_CASE_LABELS(JDK14, Fragments.FeatureMultipleCaseLabels, DiagKind.PLURAL),
226         SWITCH_RULE(JDK14, Fragments.FeatureSwitchRules, DiagKind.PLURAL),
227         SWITCH_EXPRESSION(JDK14, Fragments.FeatureSwitchExpressions, DiagKind.PLURAL),
228         TEXT_BLOCKS(JDK15, Fragments.FeatureTextBlocks, DiagKind.PLURAL),
229         PATTERN_MATCHING_IN_INSTANCEOF(JDK16, Fragments.FeaturePatternMatchingInstanceof, DiagKind.NORMAL),
230         REIFIABLE_TYPES_INSTANCEOF(JDK16, Fragments.FeatureReifiableTypesInstanceof, DiagKind.PLURAL),
231         RECORDS(JDK16, Fragments.FeatureRecords, DiagKind.PLURAL),

232         SEALED_CLASSES(JDK17, Fragments.FeatureSealedClasses, DiagKind.PLURAL),
233         CASE_NULL(JDK17, Fragments.FeatureCaseNull, DiagKind.NORMAL),
234         PATTERN_SWITCH(JDK17, Fragments.FeaturePatternSwitch, DiagKind.PLURAL),
235         REDUNDANT_STRICTFP(JDK17),
236         ;
237 
238         enum DiagKind {
239             NORMAL,
240             PLURAL;
241         }
242 
243         private final Source minLevel;
244         private final Source maxLevel;
245         private final Fragment optFragment;
246         private final DiagKind optKind;
247 
248         Feature(Source minLevel) {
249             this(minLevel, null, null);
250         }
251 

212         REPEATED_ANNOTATIONS(JDK8, Fragments.FeatureRepeatableAnnotations, DiagKind.PLURAL),
213         INTERSECTION_TYPES_IN_CAST(JDK8, Fragments.FeatureIntersectionTypesInCast, DiagKind.PLURAL),
214         GRAPH_INFERENCE(JDK8),
215         FUNCTIONAL_INTERFACE_MOST_SPECIFIC(JDK8),
216         POST_APPLICABILITY_VARARGS_ACCESS_CHECK(JDK8),
217         MAP_CAPTURES_TO_BOUNDS(MIN, JDK7),
218         PRIVATE_SAFE_VARARGS(JDK9),
219         DIAMOND_WITH_ANONYMOUS_CLASS_CREATION(JDK9, Fragments.FeatureDiamondAndAnonClass, DiagKind.NORMAL),
220         UNDERSCORE_IDENTIFIER(MIN, JDK8),
221         PRIVATE_INTERFACE_METHODS(JDK9, Fragments.FeaturePrivateIntfMethods, DiagKind.PLURAL),
222         LOCAL_VARIABLE_TYPE_INFERENCE(JDK10),
223         VAR_SYNTAX_IMPLICIT_LAMBDAS(JDK11, Fragments.FeatureVarSyntaxInImplicitLambda, DiagKind.PLURAL),
224         IMPORT_ON_DEMAND_OBSERVABLE_PACKAGES(JDK1_2, JDK8),
225         SWITCH_MULTIPLE_CASE_LABELS(JDK14, Fragments.FeatureMultipleCaseLabels, DiagKind.PLURAL),
226         SWITCH_RULE(JDK14, Fragments.FeatureSwitchRules, DiagKind.PLURAL),
227         SWITCH_EXPRESSION(JDK14, Fragments.FeatureSwitchExpressions, DiagKind.PLURAL),
228         TEXT_BLOCKS(JDK15, Fragments.FeatureTextBlocks, DiagKind.PLURAL),
229         PATTERN_MATCHING_IN_INSTANCEOF(JDK16, Fragments.FeaturePatternMatchingInstanceof, DiagKind.NORMAL),
230         REIFIABLE_TYPES_INSTANCEOF(JDK16, Fragments.FeatureReifiableTypesInstanceof, DiagKind.PLURAL),
231         RECORDS(JDK16, Fragments.FeatureRecords, DiagKind.PLURAL),
232         PRIMITIVE_CLASSES(JDK17, Fragments.FeaturePrimitiveClasses, DiagKind.NORMAL),
233         SEALED_CLASSES(JDK17, Fragments.FeatureSealedClasses, DiagKind.PLURAL),
234         CASE_NULL(JDK17, Fragments.FeatureCaseNull, DiagKind.NORMAL),
235         PATTERN_SWITCH(JDK17, Fragments.FeaturePatternSwitch, DiagKind.PLURAL),
236         REDUNDANT_STRICTFP(JDK17),
237         ;
238 
239         enum DiagKind {
240             NORMAL,
241             PLURAL;
242         }
243 
244         private final Source minLevel;
245         private final Source maxLevel;
246         private final Fragment optFragment;
247         private final DiagKind optKind;
248 
249         Feature(Source minLevel) {
250             this(minLevel, null, null);
251         }
252 
< prev index next >