8219628: [TESTBUG] javadoc/doclet/InheritDocForUserTags fails with -othervm
authorngasson
Thu, 14 Mar 2019 14:25:09 -0700
changeset 54138 b70c65a946a0
parent 54137 943cfab99051
child 54139 b6134b6d75ff
8219628: [TESTBUG] javadoc/doclet/InheritDocForUserTags fails with -othervm Reviewed-by: jjg, clanger
test/langtools/jdk/javadoc/doclet/InheritDocForUserTags/DocTest.java
test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java
--- a/test/langtools/jdk/javadoc/doclet/InheritDocForUserTags/DocTest.java	Thu Mar 14 13:33:10 2019 -0700
+++ b/test/langtools/jdk/javadoc/doclet/InheritDocForUserTags/DocTest.java	Thu Mar 14 14:25:09 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -32,6 +32,8 @@
  * @run main DocTest
  */
 
+import javadoc.tester.JavadocTester;
+
 /**
  * DocTest documentation.
  *
@@ -39,8 +41,6 @@
  * @implSpec DocTest implementation spec.
  * @implNote DocTest implementation note.
  */
-import javadoc.tester.JavadocTester;
-
 public class DocTest extends JavadocTester {
     public static void main(String... args) throws Exception {
         DocTest tester = new DocTest();
@@ -51,6 +51,7 @@
     public void test() {
         javadoc("-verbose",
                 "-d", "DocTest",
+                "-sourcepath", System.getProperty("test.src.path"),
                 "-tag", "apiNote:optcm:<em>API Note</em>",
                 "-tag", "implSpec:optcm:<em>Implementation Requirements</em>:",
                 "-tag", "implNote:optcm:<em>Implementation Note</em>:",
--- a/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java	Thu Mar 14 13:33:10 2019 -0700
+++ b/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java	Thu Mar 14 14:25:09 2019 -0700
@@ -96,7 +96,7 @@
  *      }
  *
  *      // test methods...
- *      @Test
+ *      {@literal @}Test
  *      void test() {
  *          javadoc(<i>args</i>);
  *          checkExit(Exit.OK);