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:55 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 664ecf2ba -> 24f4e3c2a


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/24f4e3c2
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/24f4e3c2
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/24f4e3c2

Branch: refs/heads/GROOVY_2_5_X
Commit: 24f4e3c2a0742c5c36bbcd4dac3a0ef4536127eb
Parents: 664ecf2
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:50 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/24f4e3c2/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 62a032d..49965ef 100644
--- a/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
+++ b/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
@@ -1262,7 +1262,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