Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-302

Site build does not work with JDK18 / javadoc-plugin-failures with JDK>=16

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.14
    • 0.17
    • site
    • None

    Description

      Due to https://bugs.openjdk.java.net/browse/JDK-8270866 the site build does not work with >=JDK18.

       

      Build yields:

      [ERROR] Generating creadur-rat/target/site/apidocs/org/apache/rat/report/xml/writer/impl/base/XmlWriter.html...
      [ERROR] error: An internal exception has occurred. 
      [ERROR]       (java.lang.NullPointerException: Cannot invoke "com.sun.source.util.DocTreePath.getTreePath()" because "path" is null)
      [ERROR] Please file a bug against the javadoc tool via the Java bug reporting page
      [ERROR] (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
      [ERROR] for duplicates. Include error messages and the following diagnostic in your report. Thank you.
      [ERROR] java.lang.NullPointerException: Cannot invoke "com.sun.source.util.DocTreePath.getTreePath()" because "path" is null
      [ERROR]     at jdk.javadoc/jdk.javadoc.internal.tool.JavadocLog.getDiagnosticSource(JavadocLog.java:667)
      [ERROR]     at jdk.javadoc/jdk.javadoc.internal.tool.JavadocLog.print(JavadocLog.java:253)
       

      Update 202411: JDK21 does work well!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pottlinger Philipp Ottlinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: