Return-Path: X-Original-To: apmail-groovy-notifications-archive@minotaur.apache.org Delivered-To: apmail-groovy-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F374E182D8 for ; Sun, 5 Jul 2015 09:24:28 +0000 (UTC) Received: (qmail 93633 invoked by uid 500); 5 Jul 2015 09:24:28 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 93606 invoked by uid 500); 5 Jul 2015 09:24:28 -0000 Mailing-List: contact notifications-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list notifications@groovy.incubator.apache.org Received: (qmail 93596 invoked by uid 99); 5 Jul 2015 09:24:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jul 2015 09:24:28 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 05 Jul 2015 09:22:18 +0000 Received: (qmail 93578 invoked by uid 99); 5 Jul 2015 09:24:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jul 2015 09:24:04 +0000 Date: Sun, 5 Jul 2015 09:24:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-7492) Groovy should allow CompileStatic classes to not implement GroovyObject MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GROOVY-7492?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D146= 14192#comment-14614192 ]=20 ASF GitHub Bot commented on GROOVY-7492: ---------------------------------------- GitHub user paulk-asert opened a pull request: https://github.com/apache/incubator-groovy/pull/54 GROOVY-7492: Groovy should allow CompileStatic classes to not impleme= =E2=80=A6 =E2=80=A6nt GroovyObject You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/incubator-groovy groovy7492 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-groovy/pull/54.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #54 =20 ---- commit e7dc41066fb6db3ef0e164040c0665ae50414617 Author: paulk Date: 2015-07-05T09:04:17Z GROOVY-7492: Groovy should allow CompileStatic classes to not implement= GroovyObject ---- > Groovy should allow CompileStatic classes to not implement GroovyObject > ----------------------------------------------------------------------- > > Key: GROOVY-7492 > URL: https://issues.apache.org/jira/browse/GROOVY-7492 > Project: Groovy > Issue Type: New Feature > Reporter: Paul King > Assignee: Paul King > Labels: experimental > Fix For: 2.5.0-beta-1 > > > Groovy's powerful AST transformation capabilities are extremely useful ev= en in mostly Java projects but the fact that generated classes implement Gr= oovyObject means that Groovy must be on the classpath when using any of the= generated artifacts. This proposed new feature allows an opt-out {{@POJO}}= marker interface which still applies Groovy's AST transforms but then leav= es them in a much more Java-like state. The mechanism currently is only ena= bled when using @CompileStatic since it produces Java-like code. This opens= up some of Groovy's powerful transforms to the wider Java community. Groov= y can effectively be used as a Lombok-style pre-processor for some Java cla= sses. Note that this is still an experimental feature - it isn't guaranteed= at this stage to always produce code which is free from any Groovy jar dep= endency. -- This message was sent by Atlassian JIRA (v6.3.4#6332)