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

[JDK9] Ignore com.sun.javadoc.* and com.sun.tools.* in animal-sniffer-maven-plugin to compile with Java 9

    XMLWordPrintableJSON

Details

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

    Description

      com.sun.javadoc and com.sun.tools are internal APIs and are not included in java18 profile, so signature check fails with JDK9.

      $ mvn clean install -DskipTests -DskipShade
      (snip)
      [INFO] --- animal-sniffer-maven-plugin:1.16:check (signature-check) @ hadoop-annotations ---
      [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
      [ERROR] /Users/ajisaka/git/hadoop/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/RootDocProcessor.java:56: Undefined reference: com.sun.javadoc.RootDoc
      (snip)
      

      Attachments

        1. HADOOP-15133.001.patch
          0.5 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                  0.5h