Re: Java 11

2018-10-24 Thread Daniel.Sun
It is up to the roadmap made by Paul ;) P.S. According to current progress, maybe the first half of next year(2019) IMO. Cheers, Daniel.Sun - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-De

Re: Java 11

2018-10-24 Thread Roman Shaposhnik
Speaking of 3.0.0 what's a general feel on when can we see it turning beta? Thanks, Roman. On Wed, Oct 24, 2018 at 6:41 AM Daniel.Sun wrote: > > 2.5.3 supports Java11 and is released. > 3.0.0 alpha-4 supports Java11 too but not released yet. > > P.S. 2.6 is not maintained anymore. > > > Cheers, >

Re: Java 11

2018-10-24 Thread Alessio Stalla
Oh, thank you. I was fouled by a failing test, but it was my fault. On Wed, 24 Oct 2018 at 15:41, Daniel.Sun wrote: > 2.5.3 supports Java11 and is released. > 3.0.0 alpha-4 supports Java11 too but not released yet. > > P.S. 2.6 is not maintained anymore. > > > Cheers, > Daniel.Sun > > > > >

Re: Java 11

2018-10-24 Thread Daniel.Sun
2.5.3 supports Java11 and is released. 3.0.0 alpha-4 supports Java11 too but not released yet. P.S. 2.6 is not maintained anymore. Cheers, Daniel.Sun - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.c

Re: Java 11

2018-10-24 Thread Paul King
2.5.3 is out with JDK11 support (albeit with warnings). On Wed, Oct 24, 2018 at 11:20 PM Alessio Stalla wrote: > Hello folks, > > is there a timeframe for Java 11 support in Groovy? Right now it barfs on > JDK 11 classes due to ASM not properly supporting them. > > Thanks, > Alessio >

Java 11

2018-10-24 Thread Alessio Stalla
Hello folks, is there a timeframe for Java 11 support in Groovy? Right now it barfs on JDK 11 classes due to ASM not properly supporting them. Thanks, Alessio

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-03 Thread Daniel.Sun
Hi Rémi, Thanks a lot for your looking into the issue :-) Cheers, Daniel.Sun - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-03 Thread Daniel.Sun
+1 - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-03 Thread Paul King
t; > *À: *"Remi Forax" > *Cc: *"dev" > *Envoyé: *Lundi 3 Septembre 2018 00:26:27 > *Objet: *Re: Support of Java 11 using ASM 6.2.1 and ASM 7 > > Hi, > Groovy 3.x snapshots use ASM7_EXPERIMENTAL. For Groovy 2.5.x, the current > plan (subject to change) i

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-02 Thread forax
> De: "paulk" > À: "Remi Forax" > Cc: "dev" > Envoyé: Lundi 3 Septembre 2018 00:26:27 > Objet: Re: Support of Java 11 using ASM 6.2.1 and ASM 7 > Hi, > Groovy 3.x snapshots use ASM7_EXPERIMENTAL. For Groovy 2.5.x, the current plan > (subj

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-02 Thread Paul King
.apache.org/jira/browse/GROOVY-8727 > > cheers, > Rémi > > - Mail original - > > De: "Remi Forax" > > À: "dev" > > Envoyé: Dimanche 2 Septembre 2018 18:04:12 > > Objet: Support of Java 11 using ASM 6.2.1 and ASM 7 > > &

Re: Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-02 Thread Remi Forax
Forget to ling to the related bug: https://issues.apache.org/jira/browse/GROOVY-8727 cheers, Rémi - Mail original - > De: "Remi Forax" > À: "dev" > Envoyé: Dimanche 2 Septembre 2018 18:04:12 > Objet: Support of Java 11 using ASM 6.2.1 and ASM 7 > H

Support of Java 11 using ASM 6.2.1 and ASM 7

2018-09-02 Thread Remi Forax
Hi all, Java 11 introduces several new forward incompatible features* in the class file. Currently javac only uses one of them, nestmates [1], which allows to declare that several classes are part of the same nest thus allow access to private members in between them, obviously changing the

Re: Java 11 Compatibility check: Apache-groovy

2018-08-14 Thread Paul King
On Tue, Aug 14, 2018 at 9:10 PM Dragan, Krzysztof wrote: > Hi, > > We are reaching out to you to check Java 11 compatibility of the library > Apache-groovy > > > > Could you help us by answering the following questions: > > > > *Col 1* > > *Col2*

Java 11 Compatibility check: Apache-groovy

2018-08-14 Thread Dragan, Krzysztof
Hi, We are reaching out to you to check Java 11 compatibility of the library Apache-groovy Could you help us by answering the following questions: Col 1 Col2 Col3 Col4 Col5 Col6 Library name Latest version Is the library compatible with Java 11 Compatible? (Y/N) Is the library

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-09 Thread Jochen Theodorou
On 08.03.2018 20:52, Remi Forax wrote: [...] using break here is ugly, i agree with you but we (the amber EG) are not able to find a better solution, if you know a better way to handle local return of a value in the case of a switch, please help us. should inspiration strike me I will let you

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-09 Thread Jochen Theodorou
On 09.03.2018 21:48, fo...@univ-mlv.fr wrote: [...] but in a switch, you can not delay the creation of a case (technically you can because you can always do weird thing but, it's not what people will expect), so disallowing int i = 0; switch(foo) { case 0 -> { i++; } } make little

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-09 Thread forax
- Mail original - > De: "MG" > À: "dev" , "Remi Forax" > Envoyé: Jeudi 8 Mars 2018 23:55:11 > Objet: Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps) > Hi Remi, > > I have used Groovy exclusively for the last years,

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-08 Thread MG
Hi Remi, I have used Groovy exclusively for the last years, so not really used to Java lambdas, but why can't you use something along the line of: int result = switch (s) {     case "Foo" -> 1;     case "Bar" -> 2;     case default -> (System.out.println("Neither Foo nor Bar, hmmm...");  3; )

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-08 Thread Remi Forax
- Mail original - > De: "Jochen Theodorou" > À: "dev" > Envoyé: Jeudi 8 Mars 2018 19:51:57 > Objet: Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps) > On 08.03.2018 17:34, Remi Forax wrote: > [...] >>>> int ac

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-08 Thread Jochen Theodorou
On 08.03.2018 17:34, Remi Forax wrote: [...] int accumulator = 0 LOOP: for (T element : someList) { accumulator += switch (element.type) { case PLUS_ONE -> +1; case MINUS_ONE -> -1; case ERROR: break LOOP; case default -> 0 } } with the idea that element.type is

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-08 Thread Remi Forax
Hi Jochen, - Mail original - > De: "Jochen Theodorou" > À: "dev" > Envoyé: Vendredi 2 Mars 2018 00:57:16 > Objet: Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps) > On 01.03.2018 16:39, Jesper Steen Møller wrote: > [...] >>

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Jochen Theodorou
On 01.03.2018 16:39, Jesper Steen Møller wrote: [...] |int numLetters = switch (day) { case MONDAY, FRIDAY, SUNDAY -> 6; case TUESDAY -> 7; case THURSDAY, SATURDAY -> 8; case WEDNESDAY -> 9; };| with |case LABEL -> expression;| essentially sugar for |case LABEL: break expression;| to make

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread MG
But yeah, I like the idea of supporting it. (and we could potentially support it before the Java version containing it is released) Guillaume On Thu, Mar 1, 2018 at 4:39 PM, Jesper Steen Møller mailto:jes...@selskabet.org>> wrote: Hi list Java 11 (or perhap

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Jesper Steen Møller
ax is crystalized first! > > But yeah, I like the idea of supporting it. > (and we could potentially support it before the Java version containing it is > released) > > Guillaume > > > On Thu, Mar 1, 2018 at 4:39 PM, Jesper Steen Møller <mailto:jes...

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Jesper Steen Møller
Hi MG > On 1 Mar 2018, at 20.56, MG wrote: > > You mean http://cr.openjdk.java.net/~briangoetz/amber/pattern-match.html > ? > It's been split up into JEP 325 (switch expr) and http://openjdk.java.net/jeps/305

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread MG
zed first! But yeah, I like the idea of supporting it. (and we could potentially support it before the Java version containing it is released) Guillaume On Thu, Mar 1, 2018 at 4:39 PM, Jesper Steen Møller mailto:jes...@selskabet.org>> w

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Cédric Champeau
zed. >> 3) It's too early to think about the implementation, let's wait till the >> syntax is crystalized first! >> >> But yeah, I like the idea of supporting it. >> (and we could potentially support it before the Java version containing >> it is released

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Paolo Di Tommaso
it > is released) > > Guillaume > > > On Thu, Mar 1, 2018 at 4:39 PM, Jesper Steen Møller > wrote: > >> Hi list >> >> Java 11 (or perhaps 12) might see a new functionality known as switch >> expressions (https://bugs.openjdk.java.net/browse/JDK-819

Re: [GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Guillaume Laforge
dea of supporting it. (and we could potentially support it before the Java version containing it is released) Guillaume On Thu, Mar 1, 2018 at 4:39 PM, Jesper Steen Møller wrote: > Hi list > > Java 11 (or perhaps 12) might see a new functionality known as switch > expressions (https://

[GEP] Switch expressions syntax from Java 11 or 12 (perhaps)

2018-03-01 Thread Jesper Steen Møller
Hi list Java 11 (or perhaps 12) might see a new functionality known as switch expressions (https://bugs.openjdk.java.net/browse/JDK-8192963 <https://bugs.openjdk.java.net/browse/JDK-8192963>). While the current Groovy implicit return functionality works with the switch statement as-i