test/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java

Print this page

        

@@ -21,11 +21,11 @@
  * questions.
  */
 
 /*
  * @test
- * @summary Determine if proper warning messages are printed when know.
+ * @summary Determine if proper warning messages are printed.
  * @author jamieh
  * @library ../lib
  * @modules jdk.javadoc
  * @build JavadocTester
  * @build TestTagMisuse

@@ -48,15 +48,16 @@
         javadoc("-Xdoclint:none",
                 "-d", "out",
                 testSrc("TestTagMisuse.java"));
         checkExit(Exit.OK);
 
-        checkOutput(Output.WARNING, true,
+        checkOutput(Output.OUT, true,
                 "warning - Tag @param cannot be used in field documentation.",
                 "warning - Tag @throws cannot be used in field documentation.",
-                "warning - Tag @return cannot be used in constructor documentation.",
-                "warning - Tag @throws cannot be used in inline documentation.");
+                "warning - Tag @return cannot be used in constructor documentation."
+                /* DCerroneous, "warning - Tag @throws cannot be used in inline documentation."*/);
+        checkOutput(Output.OUT, false, "DocletAbortException");
     }
 
     /**
      * {@throws blah}
      * Here is a bad field tag:

@@ -69,6 +70,10 @@
      * Here is a bad constructor tag:
      * @return blah
      */
     public TestTagMisuse(){}
 
+    /**
+     * for @see and {@link}), and ThrowsTag (for @throws).
+     */
+    public void thisShouldNotCrash() {}
 }