8233940: Preview API tests for String methods should use ${jdk.version} as -source arg

Reviewed-by: jlaskey, jlahoda
This commit is contained in:
Joe Darcy 2019-11-12 10:45:23 -08:00
parent 171257ea1a
commit f13a0df720
4 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@
* @test
* bug 8203444
* @summary Unit tests for instance versions of String#format
* @compile --enable-preview -source 14 Formatted.java
* @compile --enable-preview -source ${jdk.version} Formatted.java
* @run main/othervm --enable-preview Formatted
*/

View File

@ -25,7 +25,7 @@
* @test
* @bug 8223775
* @summary This exercises String#stripIndent patterns and limits.
* @compile --enable-preview -source 14 StripIndent.java
* @compile --enable-preview -source ${jdk.version} StripIndent.java
* @run main/othervm --enable-preview StripIndent
*/

View File

@ -0,0 +1 @@
allowSmartActionArgs=true

View File

@ -25,7 +25,7 @@
* @test
* @bug 8223780
* @summary This exercises String#translateEscapes patterns and limits.
* @compile --enable-preview -source 14 TranslateEscapes.java
* @compile --enable-preview -source ${jdk.version} TranslateEscapes.java
* @run main/othervm --enable-preview TranslateEscapes
*/