From users-return-3710-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Mon Jul 30 21:18:39 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 438AD180630 for ; Mon, 30 Jul 2018 21:18:38 +0200 (CEST) Received: (qmail 88521 invoked by uid 500); 30 Jul 2018 19:18:37 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 88511 invoked by uid 99); 30 Jul 2018 19:18:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2018 19:18:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BFF67180102 for ; Mon, 30 Jul 2018 19:18:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.971 X-Spam-Level: * X-Spam-Status: No, score=1.971 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=asert-com-au.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6lUbG-EnNGpV for ; Mon, 30 Jul 2018 19:18:34 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 00EC85F27B for ; Mon, 30 Jul 2018 19:18:33 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id k81-v6so23348208oib.4 for ; Mon, 30 Jul 2018 12:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asert-com-au.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=4+dyil12bg1lCWcF2a2E9osohK77S3slziigV0WU1ec=; b=BvFbgHnmTbl8JGTb1j1QgqhuODwYAB57yI1zC6sFwaZ/hBCfW4GV7YEt3V4sC6r7Jl AB8G0KFuIG1qFh3RSu4IHHCBxcOj6RSVSQ5IA2yd7oNVLc7jRvXjK0TpOKRKycaulVFo sBV6u0pEd5X5odv7o/cX3F3cVteOZb1EytVnahTbI/BHPsDGOf2FJc+k3rw8XBngcoNF ViglFvKMBJpPUGavjXj0WTYdmci/64mwQ1Vt01q73nD7bTyQRBxAz/8rdVcj5pdax25J dZT518wqQzEKdqSSHvgeGmu6icCiHIcgkraet0JXSJt6XxabweKxBnVmtme4A6K02JQz gtZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=4+dyil12bg1lCWcF2a2E9osohK77S3slziigV0WU1ec=; b=qQEZj10Mxf1vsh7Qt7/uWkUyh4yhy+saWPCakaMSeBF4DyrUW3MSrTzDFnNCCc9zYH gqT9N4S7V2g7lCnB+JN+A/733xjHvmv7mJ59RgkClY1JrjAfUFaU/FnkwVWjgOya5ih6 5osh3Bt8ZDV2hCnCfwrbj+QlPptTg1K2z0gsZ3XgdfGBbZo0wrNOaKjdckq+9WOMZ0MW lvBLZyvd76xSAk9EVB1Hie1lZS2A1yvweF336UgJcTPgHBOgFCCIvI9mJOsrwXRE00f3 KziKJNUvZdTNk2l+tGEgFnt/3fkLgU2XDgq/JI42pkK0HGTwvVeYjvlXrc9bCUrD7Tpe qJow== X-Gm-Message-State: AOUpUlH4u1heLOfMpKayGt2DOE8c7xIAAmbqH0eFvfnpcwrCPkG32wTM TpT79yMnFlDAUL4HL6B+ThuE7fOMFhrjb2SoM9cjSIWlJS8= X-Google-Smtp-Source: AAOMgpe1iHuJQvK58DfY27ciHYQNLQ8JPbMumqCuS+6DQB7+j/OIbX2pmFviWDw2KOS7trBQ3gycj1NrBsW5Q2Ua2T8= X-Received: by 2002:aca:d986:: with SMTP id q128-v6mr18178387oig.349.1532978307223; Mon, 30 Jul 2018 12:18:27 -0700 (PDT) MIME-Version: 1.0 References: <1579009314.6357493.1532971978078.JavaMail.zimbra@unicon.net> In-Reply-To: <1579009314.6357493.1532971978078.JavaMail.zimbra@unicon.net> Reply-To: paulk@asert.com.au From: Paul King Date: Tue, 31 Jul 2018 05:18:16 +1000 Message-ID: Subject: Re: Groovy and JDK 11: Compilation issue To: users@groovy.apache.org Content-Type: multipart/alternative; boundary="000000000000736d7505723c53ae" --000000000000736d7505723c53ae Content-Type: text/plain; charset="UTF-8" We use ASM 6.2 with the ASM API version set to ASM6 in Groovy 2.5.1. We use ASM 6.2 with the ASM API version set to ASM7_EXPERIMENTAL in Groovy 3 alphas. As per ASMs current strategy (archive protected by a spambot link - click through and follow date): https://mail.ow2.org/wws/arc/asm/2018-05/msg00000.html This means that we currently fully support JDK10 in 2.5.x and JDK11 in 3.x (bar some warnings and full support for modules which we are working on). We slide those ASM versions along as new versions are released (after testing of course). We have been conservative so far and not tried to put the "EXPERIMENTAL" variants in final versions of Groovy. We can re-assess that approach if we need to but it might introduce incompatibilities between Groovy versions that we'd like to avoid. Having said that, if you have simple code, you might find that it compiles and runs fine on JDK11. Or compiles on earlier versions but runs fine on JDK11 and 12 after that. The master branch of Groovy builds and the runs 10,000+ tests on JDK11 last I checked. Cheers, Paul. On Tue, Jul 31, 2018 at 3:33 AM Misagh Moayyed wrote: > Has anyone here tried to use Apache Groovy 2.5.1 or 3.x and JDK 11 > together? I am trying to troubleshoot a build failure (Using Gradle 4.8, or > 4.9) that manifests itself as: > > ... > General error during class generation: > java.lang.UnsupportedOperationException > java.lang.UnsupportedOperationException > at > groovyjarjarasm.asm.ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248) > at groovyjarjarasm.asm.ClassReader.accept(ClassReader.java:651) > at groovyjarjarasm.asm.ClassReader.accept(ClassReader.java:391) > .... > > Here is the full output of the failure: > https://travis-ci.org/apereo/cas/builds/409569422 > > It appears to me that perhaps JDK 11 support for Groovy still has a few > rough edges and may not be "officially" there. Could someone confirm this > please? > > Thanks. > > --Misagh > --000000000000736d7505723c53ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We use ASM 6.2 with the ASM API version set to ASM6 in Gro= ovy 2.5.1.

As per ASMs current strategy (archiv= e protected by a spambot link - click through and follow date):

= https://= mail.ow2.org/wws/arc/asm/2018-05/msg00000.html

This means that w= e currently fully support JDK10 in 2.5.x and JDK11 in 3.x (bar some warning= s and full support for modules which we are working on).
<= span style=3D"background-color:rgb(255,255,255);text-decoration-style:initi= al;text-decoration-color:initial;float:none;display:inline">
We slid= e those ASM versions along as new versions are released (after testing of c= ourse). We have been conservative so far and not tried to put the "EXP= ERIMENTAL" variants in final versions of Groovy. We can re-assess that= approach if we need to but it might introduce incompatibilities between Gr= oovy versions that we'd like to avoid.

Having said that, if = you have simple code, you might find that it compiles and runs fine on JDK1= 1.
Or compiles on earlier versions but runs fine on JDK11 and 12 after t= hat.

The master branch of Groovy builds and the runs 10,000+ tes= ts on JDK11 last I checked.

Cheers, Paul.


On Tue, Jul 31, 2018 at= 3:33 AM Misagh Moayyed <mmoayyed= @unicon.net> wrote:
Has anyone here tried to use Apache Groovy 2.5.1 or 3.x= and JDK 11 together? I am trying to troubleshoot a build failure (Using Gr= adle 4.8, or 4.9) that manifests itself as:

...General error during class generation: java.lang.UnsupportedOperationExcep= tion
java.lang.UnsupportedOperationException
at groovyjarjarasm.asm.= ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248)
at groo= vyjarjarasm.asm.ClassReader.accept(ClassReader.java:651)
at groovyjarja= rasm.asm.ClassReader.accept(ClassReader.java:391)
....
=
Here is the full output of the failure:

I= t appears to me that perhaps JDK 11 support for Groovy=C2=A0still has a few= rough edges and may not be "officially" there. Could someone con= firm this please?

Thanks.=C2=A0

--Misagh
--000000000000736d7505723c53ae--