Skip to content

Commit 7bca0af

Browse files
committedNov 4, 2024
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
1 parent f69b601 commit 7bca0af

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎test/jdk/java/awt/regtesthelpers/PassFailJFrame.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -184,21 +184,23 @@
184184
*
185185
* <p id="jtregTagsForTest">
186186
* Add the following jtreg tags before the test class declaration
187-
* {@snippet :
187+
* <pre><code>
188188
* /*
189-
* * @test
189+
* * &#64;test
190190
* * @summary Sample manual test
191191
* * @library /java/awt/regtesthelpers
192192
* * @build PassFailJFrame
193193
* * @run main/manual SampleManualTest
194-
* }
195-
* and the closing comment tag <code>*&#47;</code>.
194+
* *&#47;
195+
* </code></pre>
196196
* <p>
197197
* The {@code @library} tag points to the location of the
198198
* {@code PassFailJFrame} class in the source code;
199199
* the {@code @build} tag makes jtreg compile the {@code PassFailJFrame} class,
200200
* and finally the {@code @run} tag specifies it is a manual
201201
* test and the class to run.
202+
* <p>
203+
* Don't forget to update the name of the class to run in the {@code @run} tag.
202204
*
203205
* <h2 id="usingBuilder">Using {@code Builder}</h2>
204206
* Use methods of the {@link Builder Builder} class to set or change

0 commit comments

Comments
 (0)
Please sign in to comment.