Ray Chiang created HADOOP-15127:
-----------------------------------

             Summary: TestInMemoryLevelDBAliasMapClient has compilation issues 
with early versions of Java 8
                 Key: HADOOP-15127
                 URL: https://issues.apache.org/jira/browse/HADOOP-15127
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 3.1.0
            Reporter: Ray Chiang


I'm seeing this error message when using Java 8u25 on OS X:

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile 
(default-testCompile) on project hadoop-hdfs: Compilation failure
[ERROR] 
/Users/rchiang/Work/Dev/APHadoop01/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/common/blockaliasmap/impl/TestInMemoryLevelDBAliasMapClient.java:[335,9]
 no suitable method found for 
collect(java.util.stream.Collector<java.lang.Object,capture#1 of 
?,java.util.List<java.lang.Object>>)
[ERROR]     method 
java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,?
 super capture#2 of ?>,java.util.function.BiConsumer<R,R>) is not applicable
[ERROR]       (cannot infer type-variable(s) R
[ERROR]         (actual and formal argument lists differ in length))
[ERROR]     method 
java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super 
capture#2 of ?,A,R>) is not applicable
[ERROR]       (cannot infer type-variable(s) R,A,capture#3 of ?,T
[ERROR]         (argument mismatch; java.util.stream.Collector<capture#2 of 
?,capture#4 of ?,java.util.List<capture#2 of ?>> cannot be converted to 
java.util.stream.Collector<? super capture#2 of ?,capture#4 of 
?,java.util.List<capture#2 of ?>>))
{noformat}

This seems to work with Java 8u65.



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

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

Reply via email to