Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-beta1
-
None
-
None
Description
Just to document the issue in case other developers run into this. Compiling trunk with jdk 1.8u05 gives the following errors when compiling:
[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
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.