From commits-return-5337-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Feb 2 11:34:01 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id A3880180608 for ; Fri, 2 Feb 2018 11:34:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 93264160C49; Fri, 2 Feb 2018 10:34:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB0F4160C41 for ; Fri, 2 Feb 2018 11:34:00 +0100 (CET) Received: (qmail 50415 invoked by uid 500); 2 Feb 2018 10:34:00 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 50406 invoked by uid 99); 2 Feb 2018 10:33:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2018 10:33:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CAE5DDFB31; Fri, 2 Feb 2018 10:33:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sunlan@apache.org To: commits@groovy.apache.org Message-Id: <538debc539d746969c371040791387f7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: groovy git commit: Workaround for IncompatibleClassChangeError(only occurred in Java9) Date: Fri, 2 Feb 2018 10:33:59 +0000 (UTC) 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 Authored: Fri Feb 2 18:30:38 2018 +0800 Committer: sunlan 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}); } } '''