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...

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1588978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2014-04-21 20:33:55 +00:00
parent 10089d6126
commit a90ffa2760
1 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,15 @@ public abstract class DelayedProxyCollectionsTestCase extends SQLListenerTestCas
_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) {