Skip to content

Commit

Permalink
8307954: Update string template regression tests to be robust on rele…
Browse files Browse the repository at this point in the history
…ase updates

Reviewed-by: jlaskey
  • Loading branch information
jddarcy committed May 11, 2023
1 parent 4f355c3 commit 29b8242
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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 21 -Xlint:preview
// options: --enable-preview -source ${jdk.version} -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 21 -Xlint:preview
// options: --enable-preview -source ${jdk.version} -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.a.processor.type
// options: --enable-preview -source 21
// options: --enable-preview -source ${jdk.version}

import java.lang.*;

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.processor.type.cannot.be.a.raw.type
// options: --enable-preview -source 21
// options: --enable-preview -source ${jdk.version}

import java.lang.*;
import java.lang.StringTemplate.Processor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// key: compiler.note.preview.recompile
// key: compiler.err.unclosed.str.lit
// key: compiler.err.string.template.is.not.well.formed
// options: --enable-preview -source 21
// options: --enable-preview -source ${jdk.version}

import java.lang.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// key: compiler.err.unclosed.text.block
// key: compiler.err.text.block.template.is.not.well.formed
// key: compiler.err.premature.eof
// options: --enable-preview -source 21
// options: --enable-preview -source ${jdk.version}

import java.lang.*;

Expand Down

1 comment on commit 29b8242

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.