Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 5cee00956 -> 3ccb2fbe8


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 3ccb2fbe8f04518d4cb8b3c0f52f3de75ac636b4
Parents: 5cee009
Author: sunlan <sun...@apache.org>
Authored: Fri Feb 2 18:30:38 2018 +0800
Committer: sunlan <sun...@apache.org>
Committed: Fri Feb 2 18:35:21 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/3ccb2fbe/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 f2a1578..e533cad 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});
             }
         }
         '''

Reply via email to