[
https://issues.apache.org/jira/browse/TEZ-4025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030192#comment-17030192
]
Jonathan Turner Eagles commented on TEZ-4025:
---------------------------------------------
There is a bug jdk 11 linux version (12 and 13 are fixed) that prevent this.
However, maven-javadoc-plugin has created the ability to import the source and
target version of the compiler in a newer version. Unfortunately, the new
version breaks doclint disabling and adds new invalid javadoc (for example the
'<p/>' that is in all Apache license headers). But at least it shows all the
errors now.
> javadoc compilation is broken in jdk11
> --------------------------------------
>
> Key: TEZ-4025
> URL: https://issues.apache.org/jira/browse/TEZ-4025
> Project: Apache Tez
> Issue Type: Sub-task
> Reporter: Jonathan Turner Eagles
> Assignee: Jonathan Turner Eagles
> Priority: Major
> Attachments: TEZ-4025.001.patch, TEZ-4025.002.patch
>
>
> {code}
> [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.
> {code}
> {code}
> [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.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)