/* @test /nodynamiccopyright/
* @bug 8025246 8247957
* @summary doclint is showing error on anchor already defined when it's not
* @library ../..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref Test.out Test.java
* @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
*/
package p;
/**
* dupTest
* dupTest again
*
* dupTestField
* dupTestMethod
* okClass
* okField
* okMethod
*/
public class Test {
/** dupTestField again */
public int f;
/** dupTestMethod again */
public void m() { }
/**
* dupNested
* dupNested again
* dupNestedField
* dupNestedMethod
*
* okClass again
*/
public class Nested {
/**
* dupNestedField
*
* okField again
*/
public int f;
/**
* dupNestedMethod
*
* okMethod again
*/
public void m() { }
/** . */
private Nested() { }
}
/** . */
private Test() { }
}