Repository: groovy
Updated Branches:
  refs/heads/native-lambda 68df3e2b0 -> 4a06c9fc3


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

Branch: refs/heads/native-lambda
Commit: 4a06c9fc3792820be2f94be9f2c4c3a2f153df96
Parents: 68df3e2
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:58 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/4a06c9fc/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 4afc665..2437379 100644
--- a/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
+++ b/src/test/groovy/transform/stc/MethodCallsSTCTest.groovy
@@ -1252,7 +1252,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