Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14900

LambdaTestUtils won't compile with early versions of Java 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rchiang Ray Chiang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: