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: [email protected]
For additional commands, e-mail: [email protected]