File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
jdk/javadoc/doclet/testDocletExample Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 5050
5151public class TestDocletExample extends TestRunner {
5252 public static void main (String ... args ) throws Exception {
53- var t = new TestDocletExample ();
54- t .runTests (m -> new Object [] { Path .of (m .getName ()) });
53+ try {
54+ var t = new TestDocletExample ();
55+ t .runTests (m -> new Object [] { Path .of (m .getName ()) });
56+ } catch (SnippetUtils .ConfigurationException e ) {
57+ System .err .println ("NOTE: " + e .getMessage () + "; test skipped" );
58+ }
5559 }
5660
5761 SnippetUtils snippets ;
Original file line number Diff line number Diff line change 5858 */
5959public class TestJavaxToolsSnippets extends TestRunner {
6060 public static void main (String ... args ) throws Exception {
61- new TestJavaxToolsSnippets ().runTests (m -> new Object [] { Path .of (m .getName ()) });
61+ try {
62+ new TestJavaxToolsSnippets ().runTests (m -> new Object [] { Path .of (m .getName ()) });
63+ } catch (SnippetUtils .ConfigurationException e ) {
64+ System .err .println ("NOTE: " + e .getMessage () + "; test skipped" );
65+ }
6266 }
6367
6468 SnippetUtils snippets = new SnippetUtils ("java.compiler" );
You can’t perform that action at this time.
0 commit comments