Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253996

Javac error on jdk16 build 18: invalid flag: -Xdoclint:-missing

    Details

    • Subcomponent:
    • Introduced In Build:
      b18
    • Introduced In Version:
      16
    • Resolved In Build:
      b32
    • CPU:
      x86_64
    • OS:
      linux, windows_10

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        - Linux Fedora30
        - Maven 3.6.3
        - Maven Java Compiler plugin 3.8.1
        - OpenJDK16 EA build 18


        A DESCRIPTION OF THE PROBLEM :
        It looks like ZookKeeper does not build on JDK16 (it does with JDK15)

        my error is:
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (pre-compile-jute) on project zookeeper-jute: Fatal error compiling: error: invalid flag: -Xdoclint:-missing -> [Help 1]

        This is Maven debug:
        [DEBUG] Classpath:
        [DEBUG] /home/eolivelli/dev/zookeeper/zookeeper-jute/target/classes
        [DEBUG] /home/eolivelli/.m2/repository/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar
        [DEBUG] Source roots:
        [DEBUG] /home/eolivelli/dev/zookeeper/zookeeper-jute/src/main/java
        [DEBUG] /home/eolivelli/dev/zookeeper/zookeeper-jute/target/generated-sources/java
        [DEBUG] /home/eolivelli/dev/zookeeper/zookeeper-jute/target/generated-sources/annotations
        [DEBUG] Command line options:
        [DEBUG] -d /home/eolivelli/dev/zookeeper/zookeeper-jute/target/classes -classpath /home/eolivelli/dev/zookeeper/zookeeper-jute/target/classes:/home/eolivelli/.m2/repository/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar: -sourcepath /home/eolivelli/dev/zookeeper/zookeeper-jute/src/main/java:/home/eolivelli/dev/zookeeper/zookeeper-jute/target/generated-sources/java:/home/eolivelli/dev/zookeeper/zookeeper-jute/target/generated-sources/annotations: -s /home/eolivelli/dev/zookeeper/zookeeper-jute/target/generated-sources/annotations -g --release 8 -encoding UTF-8 -Werror -Xlint:deprecation -Xlint:unchecked -Xlint:-options -Xdoclint:-missing -Xpkginfo:always
        [DEBUG] incrementalBuildHelper#beforeRebuildExecution
        [INFO] Compiling 36 source files to /home/eolivelli/dev/zookeeper/zookeeper-jute/target/classes

        from "javac -help -X" it looks like "-Xdoclint:-missing" is a valid option

        REGRESSION : Last worked in version 15

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        (install Maven 3.6.3)

        git clone https://github.com/apache/zookeeper
        JAVA_HOME=/path/to/jdk-16 mvn clean package -DskipTest

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The build passes
        ACTUAL -
         invalid flag: -Xdoclint:-missing

        CUSTOMER SUBMITTED WORKAROUND :
        Do not enable "-Xdoclint:-missing" option

        FREQUENCY : always


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjg Jonathan Gibbons
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: