[
https://issues.apache.org/jira/browse/CALCITE-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719269#comment-16719269
]
Julian Hyde commented on CALCITE-2737:
--------------------------------------
I tried with Maven 3.2.5, 3.5.2 and 3.5.3 and JDK 1.8.0_152 and was not able to
reproduce the issue. I'd not consider 3.5.0 an "old" version.
Jacques, can you try to reproduce with a clean sandbox, and tell us the precise
commands you use.
> Depending on the version of Maven installed, the build will fail
> ----------------------------------------------------------------
>
> Key: CALCITE-2737
> URL: https://issues.apache.org/jira/browse/CALCITE-2737
> Project: Calcite
> Issue Type: Bug
> Reporter: Jacques Nadeau
> Assignee: Jacques Nadeau
> Priority: Major
>
> On older versions of Maven, the maven compiler plugin needs to be informed
> that the system is using source version 1.8.
> {noformat}
> mvn -version
> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
> 2017-04-04T01:09:06+05:30)
> Maven home: /usr/local/Cellar/maven/3.5.0/libexec
> Java version: 1.8.0_131, vendor: Oracle Corporation
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.6", arch: "x86_64", family:
> "mac"{noformat}
>
> {noformat}
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[56,31]
> cannot find symbol
> symbol: method length()
> location: variable e1 of type java.lang.Object
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[57,28]
> cannot find symbol
> symbol: method charAt(int)
> location: variable e1 of type java.lang.Object
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[202,9]
> cannot infer type arguments for org.apache.calcite.util.PartiallyOrderedSet<>
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[218,9]
> cannot infer type arguments for org.apache.calcite.util.PartiallyOrderedSet<>
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[226,9]
> cannot infer type arguments for org.apache.calcite.util.PartiallyOrderedSet<>
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[273,9]
> cannot infer type arguments for org.apache.calcite.util.PartiallyOrderedSet<>
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[285,9]
> cannot infer type arguments for org.apache.calcite.util.PartiallyOrderedSet<>
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[301,16]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to int
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[308,18]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to int
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[321,18]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to int
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[332,16]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to java.lang.Integer
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[339,18]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to java.lang.Integer
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[352,18]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to java.lang.Integer
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[363,16]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to int
> [ERROR]
> /src/calcite/core/src/test/java/org/apache/calcite/util/PartiallyOrderedSetTest.java:[369,18]
> incompatible types: invalid method reference
> incompatible types: java.lang.Object cannot be converted to int
> [INFO] 15 errors
> [INFO] -------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)