changeset 56906:3d2575331a41

8233940: Preview API tests for String methods should use ${jdk.version} as -source arg Reviewed-by: jlaskey, jlahoda
author darcy
date Tue, 12 Nov 2019 10:45:23 -0800
parents 642d7d7ed426
children b9a42ca342db
files 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
diffstat 4 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
  */