-
Bug
-
Resolution: Unresolved
-
P3
-
9
tidy warning: anchor already defined
Above tidy warning seen when the class name and a method name have same name and differ in uppercase/lowercase.
Sample test case:
import java.io.*;
public class Baz {
/**
* Baz doc.
*
* @throws EOFException
*/
public void baz() throws IOException {
}
}
javadoc generates a constructor anchor as: <a name="Baz--">
and a method anchor as: <a name="baz--">
tidy reports error for such cases.
Based on discussion with dev, anchors names generated for constructor will have to be prefixed with some text to differentiate such cases.
UPDATE: As suggested by Jon, above tidy error is also seen for cases when a class has equivalent methods like abc() and ABC(), so looks like the error is not related to anchor names for constructors.
Above tidy warning seen when the class name and a method name have same name and differ in uppercase/lowercase.
Sample test case:
import java.io.*;
public class Baz {
/**
* Baz doc.
*
* @throws EOFException
*/
public void baz() throws IOException {
}
}
javadoc generates a constructor anchor as: <a name="Baz--">
and a method anchor as: <a name="baz--">
tidy reports error for such cases.
Based on discussion with dev, anchors names generated for constructor will have to be prefixed with some text to differentiate such cases.
UPDATE: As suggested by Jon, above tidy error is also seen for cases when a class has equivalent methods like abc() and ABC(), so looks like the error is not related to anchor names for constructors.
- relates to
-
JDK-8046069 Fix javadoc tests in langtools regression ws for tidy warnings/errors
-
- Resolved
-