groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Workaround for IncompatibleClassChangeError(only occurred in Java9)
Date Fri, 02 Feb 2018 10:34:33 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 369a42e0e -> a4616b154


Workaround for IncompatibleClassChangeError(only occurred in Java9)

java.lang.IncompatibleClassChangeError: Method java.util.stream.Stream.of([Ljava/lang/Object;)Ljava/util/stream/Stream;
must be InterfaceMethodref constant

(cherry picked from commit 2bd2407)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: a4616b154e0d7adc42fd602c30d23e1c433b8fd1
Parents: 369a42e
Author: sunlan <sunlan@apache.org>
Authored: Fri Feb 2 18:30:38 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Feb 2 18:34:28 2018 +0800

----------------------------------------------------------------------
 src/test/groovy/transform/stc/MethodCallsSTCTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a4616b15/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy b/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
index b810748..2df0685 100644
--- a/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
+++ b/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
@@ -1270,7 +1270,7 @@ class MethodCallsSTCTest extends StaticTypeCheckingTestCase {
             }
             
             public static void p() {
-                assert 13 == Stream.of(1, 2, 3).reduce(7, {Integer r, Integer e -> r +
e});
+                assert 13 == [1, 2, 3].stream().reduce(7, {Integer r, Integer e -> r +
e});
             }
         }
         '''


Mime
View raw message