mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8307954: Update string template regression tests to be robust on release updates
Reviewed-by: jlaskey
This commit is contained in:
parent
4f355c3525
commit
29b8242e07
@ -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() {
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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.*;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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.*;
|
||||
|
||||
|
||||
@ -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.*;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user