Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-4020 Support Java 11 LTS in Tez
  3. TEZ-4025

javadoc compilation is broken in jdk11

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.1, 0.9.3
    • None
    • None

    Description

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:javadoc (default-cli) on project tez-mapreduce: An error has occurred in JavaDocs report generation:
      [ERROR] Exit code: 1 - /Users/jeagles/hadoop/tez/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/DeprecatedKeys.java:175: error: as of release 9, '_' is a keyword, and may not be used as an identifier
      [ERROR]   private static void _(String mrKey, String tezKey) {
      [ERROR]                       ^
      [ERROR]
      [ERROR] Command line was: /Library/Java/JavaVirtualMachines/openjdk-11.0.1.jdk/Contents/Home/bin/javadoc @options @packages
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/Users/jeagles/hadoop/tez/tez-mapreduce/target/site/apidocs' dir.
      
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:javadoc (default-cli) on project tez-javadoc-tools: An error has occurred in JavaDocs report generation:
      [ERROR] Exit code: 1 - /Users/jeagles/hadoop/tez/tez-tools/tez-javadoc-tools/src/main/java/org/apache/tez/tools/javadoc/doclet/ConfigStandardDoclet.java:36: warning: [removal] AnnotationDesc in com.sun.javadoc has been deprecated and marked for removal
      [ERROR] import com.sun.javadoc.AnnotationDesc.ElementValuePair;
      [ERROR]                       ^
      [ERROR] /Users/jeagles/hadoop/tez/tez-tools/tez-javadoc-tools/src/main/java/org/apache/tez/tools/javadoc/doclet/ConfigStandardDoclet.java:42: error: package com.sun.tools.doclets.standard is not visible
      [ERROR] import com.sun.tools.doclets.standard.Standard;
      [ERROR]                             ^
      [ERROR]   (package com.sun.tools.doclets.standard is declared in module jdk.javadoc, which does not export it)
      [ERROR]
      [ERROR] Command line was: /Library/Java/JavaVirtualMachines/openjdk-11.0.1.jdk/Contents/Home/bin/javadoc @options @packages
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/Users/jeagles/hadoop/tez/tez-tools/tez-javadoc-tools/target/site/apidocs' dir.
      

      Attachments

        1. TEZ-4025.001.patch
          1 kB
          Jonathan Turner Eagles
        2. TEZ-4025.002.patch
          2 kB
          Jonathan Turner Eagles
        3. TEZ-4025.003.patch
          0.5 kB
          Jonathan Turner Eagles

        Issue Links

          Activity

            People

              jeagles Jonathan Turner Eagles
              jeagles Jonathan Turner Eagles
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m