Author: kwsutter Date: Mon Apr 21 20:33:55 2014 New Revision: 1588978 URL: http://svn.apache.org/r1588978 Log: 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...
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java?rev=1588978&r1=1588977&r2=1588978&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/proxy/delayed/DelayedProxyCollectionsTestCase.java Mon Apr 21 20:33:55 2014 @@ -107,6 +107,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) {