This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Features new in Java 8 and the fly likes Strange behavior of javadoc with -Xdoclint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "Strange behavior of javadoc with -Xdoclint" Watch "Strange behavior of javadoc with -Xdoclint" New topic

Strange behavior of javadoc with -Xdoclint

Rudolf Pecinovsky

Joined: Aug 18, 2003
Posts: 4
When i translated a program with parameter -Xdoclint,
the compiler sent warnings announcing
that variables local in static initializer have no document comments.
It complained even when I added them the asked document comments.

How should I correct the program to eliminate these warnings?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Can you post an SSCCE that demonstrates this behavior? Is this behavior new when using Java 8? (I'm asking because you posted in the "Features new in Java 8" forum.)
I agree. Here's the link:
subject: Strange behavior of javadoc with -Xdoclint
It's not a secret anymore!