openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgras...@apache.org
Subject svn commit: r1641895 - /openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java
Date Wed, 26 Nov 2014 19:30:34 GMT
Author: jgrassel
Date: Wed Nov 26 19:30:33 2014
New Revision: 1641895

URL: http://svn.apache.org/r1641895
Log:
OPENJPA-2489: Delayed collection proxy tests failing with Java 8

Modified:
    openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java

Modified: openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java?rev=1641895&r1=1641894&r2=1641895&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java
(original)
+++ openjpa/branches/2.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java
Wed Nov 26 19:30:33 2014
@@ -109,6 +109,15 @@ public abstract class DelayedProxyCollec
         _ignoreInterfaces.add(DelayedProxy.class);
         _ignoreInterfaces.add(Proxy.class);
         _ignoreInterfaces.add(ProxyCollection.class);
+        
+        // Additional Java 8 methods we can safely ignore for now...
+        _ignoreMethods.add(stringMethodName("spliterator", null));
+        _ignoreMethods.add(stringMethodName("stream", null));
+        _ignoreMethods.add(stringMethodName("parallelStream", null));
+        _ignoreMethods.add("removeIf:java.util.function.Predicate");
+        _ignoreMethods.add("forEach:java.util.function.Consumer");
+        _ignoreMethods.add("replaceAll:java.util.function.UnaryOperator");
+        _ignoreMethods.add("sort:java.util.Comparator");
     }
 
     public static String stringMethodName(Method m) {



Mime
View raw message