Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2737

Depending on the version of Maven installed, the build will fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • 1.20.0
    • None
    • None

    Description

      On older versions of Maven, the maven compiler plugin needs to be informed that the system is using source version 1.8.

      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"

       

      [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] ------------------------------------------------------------------------

      Attachments

        Activity

          People

            jnadeau Jacques Nadeau
            jnadeau Jacques Nadeau
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: