Skip to content

Commit

Permalink
Update for JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLaskey committed Jan 13, 2023
1 parent 9adf709 commit 9d8e5ba
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public enum Feature {
CASE_NULL(JDK17, Fragments.FeatureCaseNull, DiagKind.NORMAL),
PATTERN_SWITCH(JDK17, Fragments.FeaturePatternSwitch, DiagKind.PLURAL),
REDUNDANT_STRICTFP(JDK17),
STRING_TEMPLATES(JDK20, Fragments.FeatureStringTemplates, DiagKind.PLURAL),
STRING_TEMPLATES(JDK21, Fragments.FeatureStringTemplates, DiagKind.PLURAL),
UNCONDITIONAL_PATTERN_IN_INSTANCEOF(JDK19, Fragments.FeatureUnconditionalPatternsInInstanceof, DiagKind.PLURAL),
RECORD_PATTERNS(JDK19, Fragments.FeatureDeconstructionPatterns, DiagKind.PLURAL),
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

// key: compiler.misc.feature.string.templates
// key: compiler.warn.preview.feature.use.plural
// options: --enable-preview -source 20 -Xlint:preview
// options: --enable-preview -source 21 -Xlint:preview

class StringTemplate {
String m() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// key: compiler.err.processor.missing.from.string.template.expression
// key: compiler.misc.feature.string.templates
// key: compiler.warn.preview.feature.use.plural
// options: --enable-preview -source 20 -Xlint:preview
// options: --enable-preview -source 21 -Xlint:preview

class StringTemplateNoProcessor {
String m() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
// key: compiler.err.not.template.processor.type
// options: --enable-preview -source 20
// options: --enable-preview -source 21

import java.lang.template.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// key: compiler.misc.unexpected.ret.val
// key: compiler.err.prob.found.req
// key: compiler.err.template.processor.type.cannot.be.a.raw.type
// options: --enable-preview -source 20
// options: --enable-preview -source 21

import java.lang.template.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// key: compiler.err.unclosed.string.template
// key: compiler.err.expected
// key: compiler.err.premature.eof
// options: --enable-preview -source 20
// options: --enable-preview -source 21

import java.lang.template.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// key: compiler.err.expected
// key: compiler.err.illegal.char
// key: compiler.err.premature.eof
// options: --enable-preview -source 20
// options: --enable-preview -source 21

import java.lang.template.*;

Expand Down

0 comments on commit 9d8e5ba

Please sign in to comment.