Default Method for Groovy 3

2016-12-08 Thread Daniel Sun
Hi all, The new parser(Parrot) supports default method now. You can find the new feature at the enhancedInterface branch of groovy-parser project ( https://github.com/danielsun1106/groovy-parser/commit/89f45ac86e794

Re: Default Method for Groovy 3

2016-12-08 Thread Marcin Erdmann
That's great news. Not being able to use default interface methods, especially when working with libraries using them in Java code, felt limiting. On Thu, 8 Dec 2016 at 17:40, Daniel Sun wrote: > Hi all, > > > > The new parser(Parrot) supports default method now. You can find > > the ne

Re: Default Method for Groovy 3

2016-12-08 Thread Guillaume Laforge
Awesome! On Thu, Dec 8, 2016 at 6:40 PM, Daniel Sun wrote: > Hi all, > > The new parser(Parrot) supports default method now. You can find > the new feature at the enhancedInterface branch of groovy-parser project >

Re: Default Method for Groovy 3

2016-12-08 Thread Remi Forax
Hi Daniel, as you have discovered, there is no flag for specifying a default method in the JVM spec, hence no ACC_DEFAULT flag in ASM, a default method is just a non abstract method in an interface. Also default and static methods in interface can be either public or private. cheers, Rémi -

Re: Default Method for Groovy 3

2016-12-08 Thread Daniel Sun
Hi Rémi, As to the "default" modifier, we have to wait for the release of newer ASM to support it ;) Thanks for your reminding. Cheers, Daniel.Sun 在 "Remi Forax [via Groovy]" ,2016年12月9日 上午4:38写道: Hi Daniel, as you have discovered, there is no flag for specifying a default meth

Re: Default Method for Groovy 3

2016-12-08 Thread Daniel Sun
Hi Rémi, I did not catch your words just now. That is great that we do not need wait for the release of ASM :) Cheers, Daniel.Sun 在 "Remi Forax [via Groovy]" ,2016年12月9日 上午4:38写道: Hi Daniel, as you have discovered, there is no flag for specifying a default method in the JVM spec, henc

Re: Default Method for Groovy 3

2016-12-08 Thread Daniel Sun
It will be a good test case to cover :) Cheers, Daniel.Sun 在 "Marcin Erdmann [via Groovy]" ,2016年12月9日 上午1:51写道: That's great news. Not being able to use default interface methods, especially when working with libraries using them in Java code, felt limiting. On Thu, 8 Dec 2016 at 17:40, Da

Re: Default Method for Groovy 3

2016-12-08 Thread Daniel Sun
Thanks ;) 在 "Guillaume Laforge [via Groovy]" ,2016年12月9日 上午2:21写道: Awesome! On Thu, Dec 8, 2016 at 6:40 PM, Daniel Sun <[hidden email]> wrote: Hi all, The new parser(Parrot) supports default method now. You can find the new feature at the enhancedInterface branch of groovy-parser p