8330197: Make javac/diags/example release agnostic

Reviewed-by: jlahoda
This commit is contained in:
Joe Darcy 2024-04-15 15:11:53 +00:00
parent da75e015b5
commit a293bdff91
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
// key: compiler.err.default.and.both.boolean.values
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
// options: --enable-preview --source 23
// options: --enable-preview --source ${jdk.version}
public class DefaultAndBothBoolean {
private int test(boolean sel) {
return switch (sel) {

View File

@ -24,7 +24,7 @@
// key: compiler.err.unconditional.pattern.and.both.boolean.values
// key: compiler.note.preview.filename
// key: compiler.note.preview.recompile
// options: --enable-preview --source 23
// options: --enable-preview --source ${jdk.version}
public class UnconditionalPatternAndBothBoolean {
private int test(boolean sel) {
return switch (sel) {