[ANNOUNCE] Apache Groovy 3.0.0-alpha-2 released

2018-04-16 Thread 孙 岚
Dear community, The Apache Groovy team is pleased to announce version 3.0.0-alpha-2 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

Re: Building Gant

2018-04-16 Thread Paul King
We just released 2.5.0-rc-1 and 3.0.0-alpha-2 (thanks Daniel). These should have ASM-6.1.1. I guess we need to release 2.4.16 and a fresh 2.6.0 alpha too so they are all on that release. I also want to do 2.5.0-rc-2 very soon. So I suspect you will be in better shape shortly. Cheers, Paul. On

[RESULT][VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-16 Thread Daniel Sun
Thanks everyone. The vote has passed with 3 binding +1 votes and two additional +1 votes. I'll proceed with next steps. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Compiler bug

2018-04-16 Thread Paul King
Okay, I can reproduce by adding @CompileStatic to the example I tried previously and can confirm that 2.4.13 is where the regression started. Workaround would be to remove @CompileStatic until we can get a fix in place. If you can raise a bug issue in Jira, that would be great. Cheers, Paul. On

Re: Building Gant

2018-04-16 Thread Jochen Theodorou
On 16.04.2018 21:38, Remi Forax wrote: [...] the support of version 54.0 and only one sentence in section 4.7.25, see https://bugs.openjdk.java.net/browse/JDK-8191867 that is the only change in bytecode? There have been enough flags in the bytecode the JVM just ignores, that could have been

Re: Building Gant

2018-04-16 Thread Remi Forax
- Mail original - > De: "Jochen Theodorou" > À: "dev" , "Russel Winder" > Envoyé: Lundi 16 Avril 2018 21:22:36 > Objet: Re: Building Gant > On 16.04.2018 19:16, Russel Winder wrote: >> I know no-one (including me) really

Re: Building Gant

2018-04-16 Thread Jochen Theodorou
On 16.04.2018 19:16, Russel Winder wrote: I know no-one (including me) really gives a about Gant these days – except perhaps Bob Swift for GINT – but it is useful for testing Gradle and Groovy. Currently I build against: 3.0.0 using my build from master/HEAD 2.4.x 2.5.x 2.6.x where I use

Building Gant

2018-04-16 Thread Russel Winder
I know no-one (including me) really gives a about Gant these days – except perhaps Bob Swift for GINT – but it is useful for testing Gradle and Groovy. Currently I build against: 3.0.0 using my build from master/HEAD 2.4.x 2.5.x 2.6.x where I use the latest version of 2.4, 2.5, and 2.6.

Compiler BUG present in Groovy.3.0.0-alpha-1

2018-04-16 Thread Kerridge, Jon
Hi, I have just recompiled my system using Groovy3.0.0-alpha-1. The same bug appears at the same line. Error message: Error:Groovyc: While compiling gppDemos: BUG! exception in phase 'class generation' in source unit 'D:\IJgroovy\gpp\gppDemos\src\demos\nQueensProblem\QueensClient.groovy'

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-16 Thread Daniel.Sun
Thanks for your voting :-) -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-16 Thread Russel Winder
> > [ ] +1 Release Apache Groovy 3.0.0-alpha-2 > [ ] 0 I don't have a strong opinion about this, but I assume it's ok > [ ] -1 Do not release Apache Groovy 3.0.0-alpha-2 because... > +1 I base my vote not on the distribution, but on building master/HEAD, but this is an alpha release and the

Re: [GEP] About supporting Java-Like array literal

2018-04-16 Thread Paul King
Well, it's fine to "refine it later" on the branch. I don't think we want it in master unless we exactly know what breaking changes like above might be involved. Cheers, Paul. On Mon, Apr 16, 2018 at 8:35 PM, Daniel Sun wrote: > Hi Paul, > > The Parrot parser on

Re: [GEP] About supporting Java-Like array literal

2018-04-16 Thread Daniel Sun
Hi Paul, The Parrot parser on the `phoenix` branch can handle nested array literals, but it parses it as list currently, we can refine it later ;-) ``` Closure[] y = { {-> 1 + 1 } } assert y[0].call().call() == 2 ``` > is the second ".call()" no longer needed? yes. Cheers,

Re: [GEP] About supporting Java-Like array literal

2018-04-16 Thread Paul King
The following examples, although a little strange, are currently supported in master: Closure[] x = { -> 1 + 1 } assert x[0].call() == 2 Closure[] y = { {-> 1 + 1 } } assert y[0].call().call() == 2 Are both supported in your branch or for the second example, is the second ".call()" no longer

[GEP] About supporting Java-Like array literal

2018-04-16 Thread Daniel Sun
Hi all, The new parser Parrot has supported some code like `int[] a = new int[] {1, 2, 3}`. In order to make Groovy compatible with Java better(copy & paste code and run well), I propose to support Java-Like array literal further, i.e. supporting some code like`int[] a = {1, 2, 3}`. I

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-16 Thread Daniel Sun
Thank you all for setting aside some time to verify and vote :-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-16 Thread Paul King
+1 (binding) Checked signatures, checksums, builds and run tests from source. Ran some minimal tests with the produced artifacts from the src build. Nice work Daniel! Cheers, Paul. On Sun, Apr 15, 2018 at 10:43 PM, Guillaume Laforge wrote: > +1 (binding) > > I did my