|
Java example source code file (Test.java)
The Test.java Java example source code
/* @test /nodynamiccopyright/
* @bug 8025246
* @summary doclint is showing error on anchor already defined when it's not
* @library ../..
* @build DocLintTester
* @run main DocLintTester -ref Test.out Test.java
* @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
*/
package p;
/**
* <a name="dupTest">dupTest
* <a name="dupTest">dupTest again
*
* <a name="dupTestField">dupTestField
* <a name="dupTestMethod">dupTestMethod
* <a name="okClass">okClass
* <a name="okField">okField
* <a name="okMethod">okMethod
*/
public class Test {
/** <a name="dupTestField">dupTestField again */
public int f;
/** <a name="dupTestMethod">dupTestMethod again */
public void m() { }
/**
* <a name="dupNested">dupNested
* <a name="dupNested">dupNested again
* <a name="dupNestedField">dupNestedField
* <a name="dupNestedMethod">dupNestedMethod
*
* <a name="okClass">okClass again
*/
public class Nested {
/**
* <a name="dupNestedField">dupNestedField
*
* <a name="okField">okField again
*/
public int f;
/**
* <a name="dupNestedMethod">dupNestedMethod
*
* <a name="okMethod">okMethod again
*/
public void m() { }
}
}
Other Java examples (source code examples)Here is a short list of links related to this Java Test.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.