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 326E0200C3F for ; Wed, 8 Mar 2017 06:05:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 310C6160B74; Wed, 8 Mar 2017 05:05:45 +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 79F9A160B68 for ; Wed, 8 Mar 2017 06:05:44 +0100 (CET) Received: (qmail 81454 invoked by uid 500); 8 Mar 2017 05:05:43 -0000 Mailing-List: contact notifications-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 notifications@groovy.apache.org Received: (qmail 81445 invoked by uid 99); 8 Mar 2017 05:05:43 -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; Wed, 08 Mar 2017 05:05:43 +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 18BD6186274 for ; Wed, 8 Mar 2017 05:05:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.951 X-Spam-Level: * X-Spam-Status: No, score=1.951 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled 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 I2q-h9tWFc_7 for ; Wed, 8 Mar 2017 05:05:41 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 03B295F1F4 for ; Wed, 8 Mar 2017 05:05:41 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B428FE0156 for ; Wed, 8 Mar 2017 05:05:38 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2304024168 for ; Wed, 8 Mar 2017 05:05:38 +0000 (UTC) Date: Wed, 8 Mar 2017 05:05:38 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GROOVY-8107) Binary incompatibility problems between compiled code in Groovy 2.4.7 vs 2.4.9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Mar 2017 05:05:45 -0000 [ https://issues.apache.org/jira/browse/GROOVY-8107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900707#comment-15900707 ] ASF GitHub Bot commented on GROOVY-8107: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/groovy/pull/508 > Binary incompatibility problems between compiled code in Groovy 2.4.7 vs 2.4.9 > ------------------------------------------------------------------------------ > > Key: GROOVY-8107 > URL: https://issues.apache.org/jira/browse/GROOVY-8107 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.9 > Reporter: Graeme Rocher > Attachments: groovy-npe-test.zip, interceptor-issue.zip > > > There are currently various binary incompatibility problems that are presenting a challenge for us moving forward with upgrading to Groovy 2.4.9 in Grails. > One of them is Groovy traits compiled with Groovy 2.4.9 are not usable in Groovy 2.4.7 due to the following exception: > {code} > Error:Groovyc: While compiling tests of grails-datastore-gorm-hibernate5_test: BUG! exception in phase 'semantic analysis' in source unit '/Users/graemerocher/grails/gorm-hibernate5/grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/jpa/SimpleJpaEntitySpec.groovy' null > at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:932) > at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:590) > at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566) > at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543) > ... > Caused by: java.lang.NullPointerException > at org.codehaus.groovy.ast.expr.VariableExpression.(VariableExpression.java:64) > at org.codehaus.groovy.transform.trait.TraitComposer.applyTrait(TraitComposer.java:247) > at org.codehaus.groovy.transform.trait.TraitComposer.doExtendTraits(TraitComposer.java:111) > at org.grails.compiler.gorm.GormEntityTransformation.visit(GormEntityTransformation.groovy:338) > at org.grails.compiler.gorm.JpaGormEntityTransformation.visit(JpaGormEntityTransformation.groovy:50) > at org.grails.compiler.gorm.GlobalJpaEntityTransform.visitClass(GlobalJpaEntityTransform.groovy:43) > at org.grails.compiler.gorm.GlobalJpaEntityTransform.visit(GlobalJpaEntityTransform.groovy:35) > at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:319) > at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:928) > ... 22 more > {code} > This is an issue and IMO there should never be binary incompatible breaking changes between different patch releases of Groovy 2.4.x. > The other issue is https://issues.apache.org/jira/browse/GROOVY-8048 > Which is marked as fixed, but currently code already compiled in Groovy 2.4.7 is throwing a NPE using 2.4.9 such as: > {code} > Caused by: java.lang.NullPointerException: null > at org.codehaus.groovy.runtime.DefaultGroovyMethods.leftShift(DefaultGroovyMethods.java:12204) > at grails.artefact.Interceptor$Trait$Helper.matchAll(Interceptor.groovy:109) > {code} > We can't really ask people to start recompiling existing published libraries for a patch release of Groovy so are looking for a path forward with these problems. > It is my opinion that we should be aim to never break binary compatibility in a major release let alone in a patch release. -- This message was sent by Atlassian JIRA (v6.3.15#6346)