You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/12/25 00:48:01 UTC
[2/2] groovy git commit: Fix "unable to resolve class
java.util.stream.Stream"
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 <su...@apache.org>
Authored: Mon Dec 25 08:47:52 2017 +0800
Committer: sunlan <su...@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