diff -r 000000000000 -r 959103a6100f test/tools/doclint/AnchorTest.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/tools/doclint/AnchorTest.java Wed Apr 27 01:34:52 2016 +0800
@@ -0,0 +1,93 @@
+/*
+ * @test /nodynamiccopyright/
+ * @bug 8004832
+ * @summary Add new doclint package
+ * @build DocLintTester
+ * @run main DocLintTester -ref AnchorTest.out AnchorTest.java
+ */
+
+/** */
+public class AnchorTest {
+ // tests for
+
+ /**
+ *
+ */
+ public void a_name_foo() { }
+
+ /**
+ *
+ */
+ public void a_name_already_defined() { }
+
+ /**
+ *
+ */
+ public void a_name_empty() { }
+
+ /**
+ *
+ */
+ public void a_name_invalid() { }
+
+ /**
+ *
+ */
+ public void a_name_missing() { }
+
+ // tests for
+
+ /**
+ *
+ */
+ public void a_id_foo() { }
+
+ /**
+ *
+ */
+ public void a_id_already_defined() { }
+
+ /**
+ *
+ */
+ public void a_id_empty() { }
+
+ /**
+ *
+ */
+ public void a_id_invalid() { }
+
+ /**
+ *
+ */
+ public void a_id_missing() { }
+
+ // tests for id=value on non- tags
+
+ /**
+ * text
+ */
+ public void p_id_foo() { }
+
+ /**
+ * text
+ */
+ public void p_id_already_defined() { }
+
+ /**
+ * text
+ */
+ public void p_id_empty() { }
+
+ /**
+ * text
+ */
+ public void p_id_invalid() { }
+
+ /**
+ * text
+ */
+ public void p_id_missing() { }
+
+
+}