[ 
https://issues.apache.org/jira/browse/OLINGO-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14496212#comment-14496212
 ] 

Christian Holzer commented on OLINGO-606:
-----------------------------------------

Hi Manuel,

I agree to your analysis.   Fixed with 
[OLINGO-606|https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=e26395fd17b5384ff3be39b9785d4db6eb20e82d]
If your build still fails, you can use the version 1.6-SNAPSHOP of the 
maven-remote-resources-plugin. Unfortunately, the version 1.6 is not yet 
released. See 
[MRRESOURCES-74|http://issues.maven.apache.narkive.com/a6TsZSUp/jira-mrresources-74-maven-remote-resources-plugin-not-compatible-with-java-8]

Kind regards

Christian

> Current master fails test cases because of sorting of join statements on JDK8
> -----------------------------------------------------------------------------
>
>                 Key: OLINGO-606
>                 URL: https://issues.apache.org/jira/browse/OLINGO-606
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>         Environment: 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)
>            Reporter: Manuel Blechschmidt
>            Assignee: Christian Holzer
>              Labels: attributes, hashmap, jdk8, sorting
>
> {code}
> 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>
> ...
> {code}
> With java 1.7 it works:
> {code}
> export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
> mvn install
> ...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> ...
> {code}
> It is likely a hashmap which should be replaced with LinkedHashMap.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to