[ 
https://issues.apache.org/jira/browse/TEZ-4025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17266409#comment-17266409
 ] 

Jonathan Turner Eagles commented on TEZ-4025:
---------------------------------------------

Rebased patch after TEZ-4261 and upgraded jdk 11 version that may address 
comments above on linux.
{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] tez 0.10.1-SNAPSHOT ................................ SUCCESS [  1.763 s]
[INFO] hadoop-shim ........................................ SUCCESS [  4.139 s]
[INFO] tez-api ............................................ SUCCESS [ 17.711 s]
[INFO] tez-build-tools .................................... SUCCESS [  0.049 s]
[INFO] tez-common ......................................... SUCCESS [  5.215 s]
[INFO] tez-runtime-internals .............................. SUCCESS [  6.548 s]
[INFO] tez-runtime-library ................................ SUCCESS [ 11.283 s]
[INFO] tez-mapreduce ...................................... SUCCESS [  8.727 s]
[INFO] tez-examples ....................................... SUCCESS [  4.705 s]
[INFO] tez-dag ............................................ SUCCESS [ 16.440 s]
[INFO] tez-tests .......................................... SUCCESS [  5.780 s]
[INFO] tez-ext-service-tests .............................. SUCCESS [  6.097 s]
[INFO] tez-ui ............................................. SUCCESS [  0.089 s]
[INFO] tez-plugins ........................................ SUCCESS [  0.048 s]
[INFO] tez-protobuf-history-plugin ........................ SUCCESS [  5.340 s]
[INFO] tez-yarn-timeline-history .......................... SUCCESS [  3.788 s]
[INFO] tez-yarn-timeline-history-with-acls ................ SUCCESS [  3.696 s]
[INFO] tez-yarn-timeline-cache-plugin ..................... SUCCESS [  3.598 s]
[INFO] tez-yarn-timeline-history-with-fs .................. SUCCESS [  3.996 s]
[INFO] tez-history-parser ................................. SUCCESS [  4.929 s]
[INFO] tez-aux-services ................................... SUCCESS [  4.277 s]
[INFO] tez-tools .......................................... SUCCESS [  0.037 s]
[INFO] tez-perf-analyzer .................................. SUCCESS [  0.035 s]
[INFO] tez-job-analyzer ................................... SUCCESS [  4.925 s]
[INFO] tez-javadoc-tools .................................. FAILURE [  2.174 s]
[INFO] hadoop-shim-impls .................................. SKIPPED
[INFO] hadoop-shim-2.8 .................................... SKIPPED
[INFO] tez-dist ........................................... SKIPPED
[INFO] Tez 0.10.1-SNAPSHOT ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:06 min
[INFO] Finished at: 2021-01-15T23:24:20Z
[INFO] ------------------------------------------------------------------------
[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 - 
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] 
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: javadoc @options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in 
'tez/tez-tools/tez-javadoc-tools/target/site/apidocs' dir.
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tez-javadoc-tools
[tez]$ java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)
{noformat}

With patch 003, mvn clean javadoc:javadoc with apdoptopenjdk 11.0.9 works for 
me on linux (RHEL 7.7).

[~abstractdog], can you have another review? Not super urgent, but I feel jdk11 
is going to be important this year.

> 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, 
> TEZ-4025.003.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)

Reply via email to