From 7bca0af481e2ab1d9576fdf400079b4e4ca91e89 Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Mon, 4 Nov 2024 11:37:47 +0000 Subject: [PATCH] 8343128: PassFailJFrame.java test result: Error. Bad action for script: build} Use HTML character entity in javadoc to prevent jtreg from recognising PassFailJFrame.java as a test file. Reviewed-by: azvegint, honkar --- test/jdk/java/awt/regtesthelpers/PassFailJFrame.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java b/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java index 41c5fdf8ccdbf..1426b97e3ca68 100644 --- a/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java +++ b/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java @@ -184,21 +184,23 @@ * *

* Add the following jtreg tags before the test class declaration - * {@snippet : + *


  * /*
- *  * @test
+ *  * @test
  *  * @summary Sample manual test
  *  * @library /java/awt/regtesthelpers
  *  * @build PassFailJFrame
  *  * @run main/manual SampleManualTest
- * }
- * and the closing comment tag */.
+ *  */
+ * 
*

* The {@code @library} tag points to the location of the * {@code PassFailJFrame} class in the source code; * the {@code @build} tag makes jtreg compile the {@code PassFailJFrame} class, * and finally the {@code @run} tag specifies it is a manual * test and the class to run. + *

+ * Don't forget to update the name of the class to run in the {@code @run} tag. * *

Using {@code Builder}

* Use methods of the {@link Builder Builder} class to set or change