Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-606

Current master fails test cases because of sorting of join statements on JDK8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • odata2-jpa
    • Mac OS X
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

    Description

      git clone https://github.com/apache/olingo-odata2
      cd olingo-odata2/odata2-jpa-processor/jpa-core
      mvn install
      ...
      Failed tests:   testBuild(org.apache.olingo.odata2.jpa.processor.core.jpql.JPQLJoinStatementBuilderTest): expected:<... 'abc' ORDER BY mat.[buyerId asc , mat.city de]sc> but was:<... 'abc' ORDER BY mat.[city desc , mat.buyerId a]sc>
      ...
      

      With java 1.7 it works:

      export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
      mvn install
      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      ...
      

      It is likely a hashmap which should be replaced with LinkedHashMap.

      Attachments

        Issue Links

          Activity

            People

              cholzer Christian Holzer
              manuel_b Manuel Blechschmidt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: