You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ray Chiang (JIRA)" <ji...@apache.org> on 2017/09/28 22:16:00 UTC
[jira] [Assigned] (HADOOP-14900) LambdaTestUtils won't compile with
early versions of Java 8
[ https://issues.apache.org/jira/browse/HADOOP-14900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Chiang reassigned HADOOP-14900:
-----------------------------------
Assignee: (was: Ray Chiang)
> LambdaTestUtils won't compile 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
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org