8233940: Preview API tests for String methods should use ${jdk.version} as -source arg
authordarcy
Tue, 12 Nov 2019 10:45:23 -0800
changeset 59037 3d2575331a41
parent 59036 642d7d7ed426
child 59038 b9a42ca342db
8233940: Preview API tests for String methods should use ${jdk.version} as -source arg Reviewed-by: jlaskey, jlahoda
test/jdk/java/lang/String/Formatted.java
test/jdk/java/lang/String/StripIndent.java
test/jdk/java/lang/String/TEST.properties
test/jdk/java/lang/String/TranslateEscapes.java
--- a/test/jdk/java/lang/String/Formatted.java	Tue Nov 12 12:36:16 2019 -0300
+++ b/test/jdk/java/lang/String/Formatted.java	Tue Nov 12 10:45:23 2019 -0800
@@ -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
  */
 
--- a/test/jdk/java/lang/String/StripIndent.java	Tue Nov 12 12:36:16 2019 -0300
+++ b/test/jdk/java/lang/String/StripIndent.java	Tue Nov 12 10:45:23 2019 -0800
@@ -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
  */
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/jdk/java/lang/String/TEST.properties	Tue Nov 12 10:45:23 2019 -0800
@@ -0,0 +1,1 @@
+allowSmartActionArgs=true
--- a/test/jdk/java/lang/String/TranslateEscapes.java	Tue Nov 12 12:36:16 2019 -0300
+++ b/test/jdk/java/lang/String/TranslateEscapes.java	Tue Nov 12 10:45:23 2019 -0800
@@ -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
  */