Hi Jon,

thanks for the report!

I couldn’t reproduce this with a simple example using the same options.

One thing I notice is that javadoc reads additional arguments from 
@/private/…/javadoc_args.
If that file contains a -private option, that would explain the warnings. Can 
you check if that is the case?

Hannes

On 10.11.2026, at 22:27, Jonathan Gibbons <[email protected]> wrote:

Hi javadoc team,

While running javadoc from within IntelliJ today, I noticed the following 
discrepancy.
I was looking to fill in missing comments on public members of some new code, 
and got a surprising spurious error about a missing comment on a private field.

Here is the raw command, and some sample errors from the log.  In the command, 
notice the "-protected" option.  In the errors, look at the access of the field.

/Users/jsqrdg/OpenJDK/jdk/jdk-25.0.2.jdk/Contents/Home/bin/javadoc<http://jdk-25.0.2.jdk/Contents/Home/bin/javadoc>
 -protected -splitindex -quiet -Xdoclint:missing -Xmaxwarns 500 -d 
/Users/jsqrdg/Projects/Tools/build/api 
@/private/var/folders/8b/528w7x7n7rzg19nwk9m_klmc0000gn/T/javadoc_args

/Users/jsqrdg/Projects/Tools/src/main/java/j2g/tools/projects/browser/AuditEvent.java:20:
 warning: no comment
    private final List<Checker<Checker.ProjectContext>> checkers;
                                                        ^
/Users/jsqrdg/Projects/Tools/src/main/java/j2g/tools/projects/browser/AuditEvent.java:19:
 warning: no comment
    private final List<Project> projects;
                                ^
/Users/jsqrdg/Projects/Tools/src/main/java/j2g/tools/projects/browser/ShowEvent.java:41:
 warning: no comment
    private final Path path;
                       ^
/Users/jsqrdg/Projects/Tools/src/main/java/j2g/tools/projects/browser/ShowEvent.java:40:
 warning: no comment
    private final List<Project> projects;
                                ^


-- Jon

Reply via email to