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

ASF subversion and git services commented on OPENJPA-2489:
----------------------------------------------------------

Commit 1588978 from [email protected] in branch 'openjpa/trunk'
[ https://svn.apache.org/r1588978 ]

OPENJPA-2489.  Committing patch as provided by Romain Manni-Bucau.   This patch 
just modifies the testcase to skip attempting to process some new Java 8 
methods that are not needed yet...

> Delayed collection proxy tests failing with Java 8
> --------------------------------------------------
>
>                 Key: OPENJPA-2489
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2489
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jdbc
>    Affects Versions: 2.4.0
>         Environment: Java 8
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
>            Reporter: Kevin Sutter
>         Attachments: OPENJPA-2489__ignorej8Methods.patch
>
>
> Several proxy tests are failing in the openjpa-persistence-jdbc bucket 
> related to the delayed collection tests.  Most likely this is due to the Map 
> interface changes introduced by Java 8.  List of failed tests:
> Failed tests:
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.hset.TestDelayedHashSetProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.hset.TestDelayedHashSetProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.pqueue.TestDelayedPriorityQueueProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.llist.TestDelayedLinkedListProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.llist.TestDelayedLinkedListProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.tset.TestDelayedTreeSetProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.lhset.TestDelayedLinkedHashSetProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.lhset.TestDelayedLinkedHashSetProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.vec.TestDelayedVectorProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.tset.TestDelayedTreeSetProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.alist.TestDelayedArrayListProxyDetachLite)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.alist.TestDelayedArrayListProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.pqueue.TestDelayedPriorityQueueProxy)
>   
> testProxyMethods(org.apache.openjpa.persistence.proxy.delayed.vec.TestDelayedVectorProxyDetachLite)
> I took a quick look at the surefire report and the error makes no sense why 
> Java 8 would affect this outcome:
>     <failure message="Expected regular expression &lt;SELECT .* DC_EMPLOYEE 
> .* &gt;
>  to be contained in SQL statements: 
> SELECT t0.id FROM DC_DEPARTMENT t0 WHERE t0.id = ?
> SELECT t0.awdName, t0.awdType FROM DC_DEP_AWD t0 WHERE t0.DEPARTMENT_ID = ?
> SELECT t1.id, t1.name FROM DC_DEP_PRD t0 INNER JOIN Product t1 ON 
> t0.PRODUCTS_ID = t1.id WHERE t0.DEPARTMENT_ID = ?
> We will need to resolve this before claiming support for Java 8.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to