Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11123 Fix Java 9 incompatibilies in Hadoop
  3. HADOOP-15287

JDK9 JavaDoc build fails due to one-character underscore identifiers in hadoop-yarn-common

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • documentation
    • None
    • Reviewed

    Description

      mvn --projects hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common javadoc:javadoc fails.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:javadoc (default-cli) on project hadoop-yarn-common: An error has occurred in Javadoc report generation:
      [ERROR] Exit code: 1 - ./hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/Hamlet.java:50: error: as of release 9, '_' is a keyword, and may not be used as an identifier
      [ERROR]   public class HTML<T extends _> extends EImp<T> implements HamletSpec.HTML {
      [ERROR]                               ^
      [ERROR] ./hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/Hamlet.java:92: error: as of release 9, '_' is a keyword, and may not be used as an identifier
      [ERROR]       return base().$href(href)._();
      [ERROR]                                 ^
      ...
      

      FYI: https://bugs.openjdk.java.net/browse/JDK-8061549

      Attachments

        1. HADOOP-15287.1.patch
          0.7 kB
          Takanobu Asanuma
        2. HADOOP-15287.2.patch
          0.7 kB
          Takanobu Asanuma

        Issue Links

          Activity

            People

              tasanuma Takanobu Asanuma
              tasanuma Takanobu Asanuma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: