An issue about comparing arrays

2016-10-28 Thread 孙 岚
Hi all,

 I found "new int[2]" is equal to "new int[2][]". It is a bug or feature?

Cheers,
Daniel.Sun




Summary for project groovy-parser

2016-10-28 Thread 孙 岚
Hi all,

I'm very glad to summarize the groovy-parser project. Currently almost 
all features of Groovy are available. In addition, the following new features 
have been added:
1) do-while loop;
2) identical operation(===, !==);
3) lambda expression;
4) method reference and constructor reference;
5) groovydoc attached to AST node as metadata(to simplify generating groovydoc);

 There are 3 failing test cases to fix, which will be done when the 
PR(https://github.com/apache/groovy/pull/443) is merged.

 More information can be found at 
https://github.com/danielsun1106/groovy-parser

 At last, I want to thank *Jochen Theodorou* and *Paul King* who helped 
me confirm issues and offered suggestions, *Cédric Champeau* who offered me a 
new CI instance and invited me to become a committer of Apache Groovy to 
contribute more easily, *Sergei Egorov* who helped me fix the 3 failing test 
cases related to MacroGroovy,  *Graeme Rocher* who offered me suggestions to 
fix issues of Travis CI, Sam Harwell who offered me suggestions on usage of 
Antlr4.

 Let's try our best to make Apache Groovy groovier and groovier!

Cheers,
Daniel.Sun




Re: "Parsing JSON is a mine field" <-- to read to improve Groovy's support

2016-10-28 Thread John Wagenleitner
On Thu, Oct 27, 2016 at 1:25 AM, Guillaume Laforge 
wrote:

> Hi there,
>
> I just saw this article yesterday: "Parsing JSON is a mine filed"
> http://seriot.ch/parsing_json.html
>
> I haven't read it (yet) in details, but we might be able to improve
> Groovy's JSON parsing support by going through all the corner cases listed,
> see how we fare, and see if/how we can fix those cases.
>
>
>

Quickly ran those test json files through Groovy's JSON parsers.  For the
most part it didn't fail on ones marked as should fail because the Groovy
parsers are pretty lenient with extra characters appearing after the
closing brackets/braces.  I created a ticket [1] for one that I think
should fail because it produces inaccurate data.

The only file it failed to parse that was marked as should succeed was
y_number_huge_exp.json [2] because BigDecimal doesn't handle exponents with
more than 10 digits (leading zero's excluded).


[1] https://issues.apache.org/jira/browse/GROOVY-7979

[2]
https://github.com/nst/JSONTestSuite/blob/af9a79630a1233a023911bfbb22497cb14b44433/test_parsing/y_number_huge_exp.json


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Guillaume Laforge
On Fri, Oct 28, 2016 at 1:37 PM, Russel Winder  wrote:

> [...]
> > So how about replacing jarjar with that?
>
> There must be some appropriate Jar Jar Binks reference applicable at
> this time.


 Or at least the "shadow" of Jar Jar Binks.


-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge  / Google+



Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Russel Winder
On Fri, 2016-10-28 at 09:15 +0200, Cédric Champeau wrote:
> Of course everybody should use utf-8 :)

Is there any other encoding?

Oh, Windows.

They could not even use the standard UTF-16 they had to force
definition of a new standard.

BOM, BOM, BOM, BOM.

-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

signature.asc
Description: This is a digitally signed message part


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Russel Winder
On Thu, 2016-10-27 at 19:05 +0200, Jochen Theodorou wrote:
> Hi all,
> 
> we use jarjar in our build through an ant task and since I am the
> only 
> one currently doing in jarjar once in a couple of years I was
> wondering 
> if there is no replacement. And I found the gradle shadow plugin,
> which 
> should be able to cover all our needs.
> 
> So how about replacing jarjar with that?
> 

There must be some appropriate Jar Jar Binks reference applicable at
this time.

-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

signature.asc
Description: This is a digitally signed message part


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread jim northrop
Merci Cedric-
Was fighting this problem only yesterday, so your tip will save me beaucoup
work. -
Jim

On 28 October 2016 at 09:03, Cédric Champeau 
wrote:

> Yes, the shadow plugin is also one of the most used Gradle plugins out
> there. It's rock solid :)
>
> 2016-10-28 0:12 GMT+02:00 Guillaume Laforge :
>
>> Right, that's what it says on the tin:
>> https://github.com/johnrengelman/shadow
>>
>> On Fri, Oct 28, 2016 at 12:01 AM, Jochen Theodorou 
>> wrote:
>>
>>> On 27.10.2016 21:58, Guillaume Laforge wrote:
>>>
 Does it do package translation too?

>>>
>>> afaik yes
>>>
>>> bye Jochen
>>>
>>>
>>
>>
>> --
>> Guillaume Laforge
>> Apache Groovy committer & PMC Vice-President
>> Developer Advocate @ Google Cloud Platform
>>
>> Blog: http://glaforge.appspot.com/
>> Social: @glaforge  / Google+
>> 
>>
>
>


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Remi Forax
Some OS stubbornly refuses to be UTF8 by default :) 

Rémi 

> De: "Cédric Champeau" 
> À: dev@groovy.apache.org
> Envoyé: Vendredi 28 Octobre 2016 09:15:20
> Objet: Re: replacing jarjar by gradle shadow plugin

> Of course everybody should use utf-8 :)

> 2016-10-28 9:14 GMT+02:00 Remi Forax < fo...@univ-mlv.fr > :

>> It doesn't work well on Windows if you do not change the default java 
>> encoding
>> to be UTF8,
>> says the guy that witness a whole team of students to frantically tries
>> everything possible the day before a very important release.

>> Rémi

>>> De: "Cédric Champeau" < cedric.champ...@gmail.com >
>>> À: dev@groovy.apache.org
>>> Envoyé: Vendredi 28 Octobre 2016 09:03:36
>>> Objet: Re: replacing jarjar by gradle shadow plugin

>>> Yes, the shadow plugin is also one of the most used Gradle plugins out 
>>> there.
>>> It's rock solid :)

>>> 2016-10-28 0:12 GMT+02:00 Guillaume Laforge < glafo...@gmail.com > :

 Right, that's what it says on the tin:
 https://github.com/johnrengelman/shadow

 On Fri, Oct 28, 2016 at 12:01 AM, Jochen Theodorou < blackd...@gmx.org > 
 wrote:

> On 27.10.2016 21:58, Guillaume Laforge wrote:

>> Does it do package translation too?

> afaik yes

> bye Jochen

 --
 Guillaume Laforge
 Apache Groovy committer & PMC Vice-President
 Developer Advocate @ Google Cloud Platform

 Blog: http://glaforge.appspot.com/
 Social: @glaforge / Google+


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Cédric Champeau
Of course everybody should use utf-8 :)

2016-10-28 9:14 GMT+02:00 Remi Forax :

> It doesn't work well on Windows if you do not change the default java
> encoding to be UTF8,
> says the guy that witness a whole team of students to frantically tries
> everything possible the day before a very important release.
>
> Rémi
>
> --
>
> *De: *"Cédric Champeau" 
> *À: *dev@groovy.apache.org
> *Envoyé: *Vendredi 28 Octobre 2016 09:03:36
> *Objet: *Re: replacing jarjar by gradle shadow plugin
>
> Yes, the shadow plugin is also one of the most used Gradle plugins out
> there. It's rock solid :)
>
> 2016-10-28 0:12 GMT+02:00 Guillaume Laforge :
>
>> Right, that's what it says on the tin:
>> https://github.com/johnrengelman/shadow
>>
>> On Fri, Oct 28, 2016 at 12:01 AM, Jochen Theodorou 
>> wrote:
>>
>>> On 27.10.2016 21:58, Guillaume Laforge wrote:
>>>
 Does it do package translation too?

>>>
>>> afaik yes
>>>
>>> bye Jochen
>>>
>>>
>>
>>
>> --
>> Guillaume Laforge
>> Apache Groovy committer & PMC Vice-President
>> Developer Advocate @ Google Cloud Platform
>>
>> Blog: http://glaforge.appspot.com/
>> Social: @glaforge  / Google+
>> 
>>
>
>


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Cédric Champeau
Yes, the shadow plugin is also one of the most used Gradle plugins out
there. It's rock solid :)

2016-10-28 0:12 GMT+02:00 Guillaume Laforge :

> Right, that's what it says on the tin:
> https://github.com/johnrengelman/shadow
>
> On Fri, Oct 28, 2016 at 12:01 AM, Jochen Theodorou 
> wrote:
>
>> On 27.10.2016 21:58, Guillaume Laforge wrote:
>>
>>> Does it do package translation too?
>>>
>>
>> afaik yes
>>
>> bye Jochen
>>
>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge  / Google+
> 
>


Re: replacing jarjar by gradle shadow plugin

2016-10-28 Thread Remi Forax
It doesn't work well on Windows if you do not change the default java encoding 
to be UTF8, 
says the guy that witness a whole team of students to frantically tries 
everything possible the day before a very important release. 

Rémi 

> De: "Cédric Champeau" 
> À: dev@groovy.apache.org
> Envoyé: Vendredi 28 Octobre 2016 09:03:36
> Objet: Re: replacing jarjar by gradle shadow plugin

> Yes, the shadow plugin is also one of the most used Gradle plugins out there.
> It's rock solid :)

> 2016-10-28 0:12 GMT+02:00 Guillaume Laforge < glafo...@gmail.com > :

>> Right, that's what it says on the tin:
>> https://github.com/johnrengelman/shadow

>> On Fri, Oct 28, 2016 at 12:01 AM, Jochen Theodorou < blackd...@gmx.org > 
>> wrote:

>>> On 27.10.2016 21:58, Guillaume Laforge wrote:

 Does it do package translation too?

>>> afaik yes

>>> bye Jochen

>> --
>> Guillaume Laforge
>> Apache Groovy committer & PMC Vice-President
>> Developer Advocate @ Google Cloud Platform

>> Blog: http://glaforge.appspot.com/
>> Social: @glaforge / Google+