8321484: Make TestImplicitlyDeclaredClasses release independent

Reviewed-by: vromero
This commit is contained in:
Joe Darcy 2023-12-06 21:24:56 +00:00
parent b02fc8681e
commit 781775d73b

View File

@ -65,7 +65,7 @@ public class TestImplicitlyDeclaredClasses extends JavadocTester {
.collect(Collectors.joining("\n")));
// TODO: remove preview-related options once "Implicitly Declared
// Classes and Instance Main Methods" has been standardized
javadoc("--enable-preview", "--source=22",
javadoc("--enable-preview", "--source=" + Runtime.version().feature(),
"-d", base.resolve("out-" + index).toString(),
src.toString());