[ https://issues.apache.org/jira/browse/HADOOP-15133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298156#comment-16298156 ]
Akira Ajisaka commented on HADOOP-15133: ---------------------------------------- After applying the patch, {{mvn install -DskipTests -DskipShade}} fails with JDK9: {noformat} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hadoop-common: Compilation failure: Compilation failure: [ERROR] /Users/ajisaka/git/hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java:[333,17] cannot find symbol [ERROR] symbol: class Cleaner [ERROR] location: package sun.misc [ERROR] /Users/ajisaka/git/hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoStreamUtils.java:[40,21] cannot find symbol [ERROR] symbol: class Cleaner [ERROR] location: package sun.misc [ERROR] -> [Help 1] {noformat} This error can be fixed by applying HADOOP-12760. > [JDK9] Ignore com.sun.javadoc.* and com.sun.tools.* in > animal-sniffer-maven-plugin to compile with Java 9 > --------------------------------------------------------------------------------------------------------- > > Key: HADOOP-15133 > URL: https://issues.apache.org/jira/browse/HADOOP-15133 > Project: Hadoop Common > Issue Type: Sub-task > Reporter: Akira Ajisaka > Assignee: Akira Ajisaka > Attachments: HADOOP-15133.001.patch > > > com.sun.javadoc and com.sun.tools are internal APIs and are not included in > java18 profile, so signature check fails with JDK9. > {noformat} > $ 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) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org