Repository: groovy
Updated Branches:
  refs/heads/master fea650741 -> 2bd24076b


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


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

Branch: refs/heads/master
Commit: 2bd24076b85cb3037165c694f7ac66b4f3c69d71
Parents: fea6507
Author: sunlan <sun...@apache.org>
Authored: Fri Feb 2 18:30:38 2018 +0800
Committer: sunlan <sun...@apache.org>
Committed: Fri Feb 2 18:30:38 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/2bd24076/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