Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF4BE200BD3 for ; Tue, 22 Nov 2016 04:08:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BE076160B19; Tue, 22 Nov 2016 03:08:36 +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 14232160AF9 for ; Tue, 22 Nov 2016 04:08:35 +0100 (CET) Received: (qmail 3261 invoked by uid 500); 22 Nov 2016 03:08:35 -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 3247 invoked by uid 99); 22 Nov 2016 03:08:35 -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; Tue, 22 Nov 2016 03:08:35 +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 C258118051E for ; Tue, 22 Nov 2016 03:08:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.699 X-Spam-Level: * X-Spam-Status: No, score=1.699 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id IWUvaWMychPz for ; Tue, 22 Nov 2016 03:08:32 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 349AB5F39A for ; Tue, 22 Nov 2016 03:08:32 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id n21so6333596qka.3 for ; Mon, 21 Nov 2016 19:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=A0skMsMbsc0wf7DefM5oui3BteRD3B6yY8nTRORwzhQ=; b=xTSmtb/7HHoz0QBeSVd8W/0HZ5JcUtOJpu8LOTDSDWIuUEgzcSRokYVVeCYi4rYVhI F9zcj7ZFUyydqbQ5kzKXhLq128DLjPr86AyoXGZZpXWps+O2nH03tts9l3gh5kXcq/84 4e/ZiVnqLZ3C8mP0pMP4H7O1ZWXmEYfhbsBUteq1NhS2AD7UmbOCpulbB9ui5b3n7/aZ clXp5c4b4qXNfMuXLUpbK4C6JI11s/hJvB9v3X2qL4oaqE4cKXIIv/V8kWfQlWii98W2 JOgTBThZRfDVPax8Igt2FUjX4QXZk4G+JCEoXRmLynvJNFG989+KepnfvlPmj6oHCfz4 FGIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=A0skMsMbsc0wf7DefM5oui3BteRD3B6yY8nTRORwzhQ=; b=XDf9JY881JKyGmS/KhKHMxns4swcz6STO+hZQjIbNineUiIUTSdeDgbvlzPS9h+JxR lKT7DDvsfciiMmm4Kh6EYnlSX0duHWSeaPU7FpASzVkr1KfRzUjwsEweGkYg3g8lBBIJ xhZZFpGKEELRmKhNIukYyZbXNoXsd6RknWZg/AAF7cwHwsCFoUnYu2FfKgSIRW2diO6N wSOfXC3Msi9e+ckejCGec9fDwQQ9kokZHIk4wbU2wmlwazidv5/XXjU1YJaeKBgMugk6 byC48X0dBFKeZztgf3zJYJl3kFpqHnkAifiUE4/ozWph55xy5eJSGYQD2VUr/LMJkeHS 5b6g== X-Gm-Message-State: AKaTC02jAv8VDwri6CvrWPOMpaWYvVXFiTY41Ai8QQUG2JuNR71hX0R5c+QtnftzqaCM0PBrrKq4HN30YZfvWA== X-Received: by 10.55.162.79 with SMTP id l76mr19139749qke.17.1479784110883; Mon, 21 Nov 2016 19:08:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.80.209 with HTTP; Mon, 21 Nov 2016 19:08:10 -0800 (PST) In-Reply-To: <583376C8.7090101@gmx.org> References: <5C676E6359909E478C7B811BDB48CA35613416@CWWAPP478.windstream.com> <583376C8.7090101@gmx.org> From: Keegan Witt Date: Mon, 21 Nov 2016 22:08:10 -0500 Message-ID: Subject: Re: GMavenPlus compiles stubs To: users@groovy.apache.org Content-Type: multipart/alternative; boundary=94eb2c0880e6460cd70541db1643 archived-at: Tue, 22 Nov 2016 03:08:36 -0000 --94eb2c0880e6460cd70541db1643 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jochen is right, Groovy compilation happens after stubgen and javac, hence it'll replace those previously generated classes. Why shouldn't javac compile the stubs? Wouldn't javac need the classes so that it has something to compile against (since Java is statically compiled) so that circular compilation works? GMaven worked this way also. -Keegan On Nov 21, 2016 4:36 PM, "Jochen Theodorou" wrote: > On 21.11.2016 23:08, Winnebeck, Jason wrote: > >> I recently encountered an error from javac compiling a stub that was >> otherwise valid from Groovy itself when I enabled generate-stubs task. I >> resolved the error properly, but I wonder, should javac be compiling >> stubs when using gmavenplus? >> > > afaik no > > I thought it just referred to them but did >> not compile them. If it=E2=80=99s compiling the stubs, am I at risk of h= aving >> the stub replace the Groovy-generated code in the final jar? >> > > since groovy compilation happens after the groovy compiler will overwrite > those classes. So no danger from that front > > bye Jochen > --94eb2c0880e6460cd70541db1643 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Jochen is right, Groovy compilation happens= after stubgen and javac, hence it'll replace those previously generate= d classes.

Why shouldn't javac compile the stubs?=C2=A0 Wouldn'= t javac need the classes so that it has something to compile against (since= Java is statically compiled) so that circular compilation works?=C2=A0 GMa= ven worked this way also.

-Keegan


On Nov 21, 2016 4= :36 PM, "Jochen Theodorou" <blackdrag@gmx.org> wrote:
On 21.11.2016 23:08, Winnebeck, Jason wro= te:
I recently encountered an error from javac compiling a stub that was
otherwise valid from Groovy itself when I enabled generate-stubs task. I resolved the error properly, but I wonder, should javac be compiling
stubs when using gmavenplus?

afaik no

I thought it just referred to them but did
not compile them. If it=E2=80=99s compiling the stubs, am I at risk of havi= ng
the stub replace the Groovy-generated code in the final jar?

since groovy compilation happens after the groovy compiler will overwrite t= hose classes. So no danger from that front

bye Jochen
--94eb2c0880e6460cd70541db1643--