You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Bruce K. Haddon (Jira)" <ji...@apache.org> on 2021/06/01 20:50:00 UTC

[jira] [Created] (NETBEANS-5742) doclint (now and before)

Bruce K. Haddon created NETBEANS-5742:
-----------------------------------------

             Summary: doclint (now and before)
                 Key: NETBEANS-5742
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5742
             Project: NetBeans
          Issue Type: Bug
          Components: cnd - Other
    Affects Versions: 12.4
         Environment: For Demo123, the project was created in an earlier version of NetBeans (not sure which, I have over one-hundred projects, so I need a fix that is not a one-by-one deal), but the error message is seen when running against JDK16.
For Demo124, the project was created using NetBeans 12.4, and has been run against JDK16.

The rest of the environment is Windows 10, 64-bit, running on a machine with AMD A10-7869K APU at 3.7GHz, and 32.0GB of memory.
            Reporter: Bruce K. Haddon


With projects created with NetBeans 12.3 and many earlier versions, the compile option -Xdoclint:all generates, with JDK 16, the message: 
     warning: No service provider for doclint is available
     1 warning
See the NetBeans exported project zipfile Demo123 (the project was created in a version of NetBeans before 12.4).

With projects created with 12.4, the exact same program does not produce this message.

However, even with the appropriate JDK matching the Netbeans version,, doclint has a bug.  If an enum value in an enum class has a anonymous class body, then doclint always reports that the enum name itself has no comment, even if it has. Without the anonymous class body, doclint will recognize the presence of Javadoc comments. Either way, the Javadoc processor itself gets the comment correctly. 
See the NetBeans exported project zipfile Demo124  (the project was created in NetBeans 12.4, with the source files copied from Demo123).

p.s. The files read (I think), as the size of 17KB is shown. However, Jira complains of a "missing token." I have no idea what this means, The zipfiles were created by NetBeans 12.4 as exported projects. Please let me know if you need these files some other way. They are small projects illustrating the problems.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists