Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
ent/5736458/0/QQ20161103-0%402x.png] ​ 2016-10-30 18:50 GMT+08:00 Daniel.Sun <[hidden email]>: Hi Jochen, I create JIRA issue GROOVY-7983(https://issues.apache.org/jira/browse/GROOVY-7983) to track the issue. BTW, the code in the email should be corrected as follow: def a = ne

Re: An issue about comparing arrays

2016-11-02 Thread Paul King
qual. >> >> See https://github.com/groovy/groovy-core/blob/master/src/ >> test/groovy/ArrayTest.groovy#L198 >> >> >> ​ >> >> 2016-10-30 18:50 GMT+08:00 Daniel.Sun <[hidden email]>: >> >>> Hi Jochen, >>> >>>

Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
email should be corrected as follow: def a = new int[2][] def b = new int[2][][] assert a == b // expect faling Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/An-issue-about-comparing-arrays-tp5736379p5736398.html Sent from the Groovy Dev mailing list archive

Re: An issue about comparing arrays

2016-11-02 Thread bo zhang
t; Hi Jochen, >> >> I create JIRA issue >> GROOVY-7983(https://issues.apache.org/jira/browse/GROOVY-7983) to track >> the >> issue. >> >> BTW, the code in the email should be corrected as follow: >> >> def a = new int[2][] >> def

Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
w: def a = new int[2][] def b = new int[2][][] assert a == b // expect faling Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/An-issue-about-comparing-arrays-tp5736379p5736398.html Sent from the Groovy Dev mailing list archive at Nabble.com. _

Re: An issue about comparing arrays

2016-11-02 Thread bo zhang
, the code in the email should be corrected as follow: > > def a = new int[2][] > def b = new int[2][][] > assert a == b // expect faling > > Cheers, > Daniel.Sun > > > > -- > View this message in context: http://groovy.329449.n5. > nabble.com/An-issue-about-comparing-arrays-tp5736379p5736398.html > Sent from the Groovy Dev mailing list archive at Nabble.com. >

Re: An issue about comparing arrays

2016-10-30 Thread Daniel.Sun
message in context: http://groovy.329449.n5.nabble.com/An-issue-about-comparing-arrays-tp5736379p5736398.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: An issue about comparing arrays

2016-10-29 Thread Jochen Theodorou
On 29.10.2016 04:24, 孙 岚 wrote: Hi all, I found "new int[2]" is equal to "new int[2][]". It is a bug or feature? that looks like a bug to me... not sure if that is legal in Java,but if I would expect the creation of a 2 elements array of int[] with null values bye Jochen

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