Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 8 javadoc doclint feature 'tag not allowed here'

Tags:

java

javadoc

I have recently upgraded my project from Java 7 to 8. I have stumbled upon a number of error because of doclint feature for javadoc. error: tag not allowed here:

HTML Tag in java file:

<a name="ThpSslEnabled"></a>

I tried checking for conformance with W3C HTML standards for anchor tag, but did not find anything which could be helpful.

like image 834
Phalgun Avatar asked Nov 03 '15 10:11

Phalgun


1 Answers

Are you using Maven or any other build software?

DocLint is enabled by default in Java 8, and will run a whole lot of checks before generating Javadocs. You need to turn this off for Java 8.

Check this answer: Maven is not working in Java 8 when JavaDoc tags are incomplete

<properties>
    <additionalparam>-Xdoclint:none</additionalparam>
</properties>
like image 63
m.aibin Avatar answered Nov 02 '22 10:11

m.aibin