groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [2/2] groovy git commit: Fix "unable to resolve class java.util.stream.Stream"
Date Mon, 25 Dec 2017 00:48:01 GMT
Fix "unable to resolve class java.util.stream.Stream"


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/e9b6bddd
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e9b6bddd
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e9b6bddd

Branch: refs/heads/GROOVY_2_4_X
Commit: e9b6bddda05165195db24d42ed3715e4752e0397
Parents: 091e178
Author: sunlan <sunlan@apache.org>
Authored: Mon Dec 25 08:47:52 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Mon Dec 25 08:47:52 2017 +0800

----------------------------------------------------------------------
 .../groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/e9b6bddd/src/test/org/codehaus/groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy
b/src/test/org/codehaus/groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy
index 80ad66a..ee2c88c 100644
--- a/src/test/org/codehaus/groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy
+++ b/src/test/org/codehaus/groovy/vmplugin/v8/InterfaceStaticMethodCallTest.groovy
@@ -18,8 +18,14 @@
  */
 package org.codehaus.groovy.vmplugin.v8
 
+import org.codehaus.groovy.vmplugin.VMPluginFactory
+
 class InterfaceStaticMethodCallTest extends GroovyTestCase {
     void testStreamOf() {
+        if (VMPluginFactory.getPlugin().getVersion() < 8) {
+            return
+        }
+
         // "of" is a static method declared on the interface, we only want to be sure we
can call the method
         assertScript '''
             import java.util.stream.Stream


Mime
View raw message