You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ray Chiang (JIRA)" <ji...@apache.org> on 2017/09/22 18:31:00 UTC

[jira] [Created] (HADOOP-14900) Errors in trunk with early versions of Java 8

Ray Chiang created HADOOP-14900:
-----------------------------------

             Summary: Errors in trunk with early versions of Java 8
                 Key: HADOOP-14900
                 URL: https://issues.apache.org/jira/browse/HADOOP-14900
             Project: Hadoop Common
          Issue Type: Bug
          Components: tools
    Affects Versions: 3.0.0-beta1
            Reporter: Ray Chiang
            Assignee: Ray Chiang


Just to document the issue in case other developers run into this.  Compiling trunk with jdk 1.8u05 gives the following errors when compiling:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project hadoop-aws: Compilation failure: Compilation failure:
[ERROR] /root/hadoop/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionAlgorithmValidation.java:[45,5] reference to intercept is ambiguous
[ERROR]   both method <E>intercept(java.lang.Class<E>,java.lang.String,org.apache.hadoop.test.LambdaTestUtils.VoidCallable) in org.apache.hadoop.test.LambdaTestUtils and method <T,E>intercept(java.lang.Class<E>,java.lang.String,java.util.concurrent.Callable<T>) in org.apache.hadoop.test.LambdaTestUtils match
[ERROR] /root/hadoop/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionAlgorithmValidation.java:[69,5] reference to intercept is ambiguous
[ERROR]   both method <E>intercept(java.lang.Class<E>,java.lang.String,org.apache.hadoop.test.LambdaTestUtils.VoidCallable) in org.apache.hadoop.test.LambdaTestUtils and method <T,E>intercept(java.lang.Class<E>,java.lang.String,java.util.concurrent.Callable<T>) in org.apache.hadoop.test.LambdaTestUtils match
[ERROR] /root/hadoop/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionAlgorithmValidation.java:[94,5] reference to intercept is ambiguous
[ERROR]   both method <E>intercept(java.lang.Class<E>,java.lang.String,org.apache.hadoop.test.LambdaTestUtils.VoidCallable) in org.apache.hadoop.test.LambdaTestUtils and method <T,E>intercept(java.lang.Class<E>,java.lang.String,java.util.concurrent.Callable<T>) in org.apache.hadoop.test.LambdaTestUtils match
[ERROR] /root/hadoop/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionAlgorithmValidation.java:[120,5] reference to intercept is ambiguous
[ERROR]   both method <E>intercept(java.lang.Class<E>,java.lang.String,org.apache.hadoop.test.LambdaTestUtils.VoidCallable) in org.apache.hadoop.test.LambdaTestUtils and method <T,E>intercept(java.lang.Class<E>,java.lang.String,java.util.concurrent.Callable<T>) in org.apache.hadoop.test.LambdaTestUtils match
{noformat}

Based on my testing jdk 1.8u92 doesn't produce this error.

I don't think this issue needs to be fixed in the code, but documenting it in JIRA.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org