groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balachandran Sivakumar <benignb...@gmail.com>
Subject Re: Different behaviour for @Sortable 2.3.6+
Date Wed, 11 Nov 2015 16:55:17 GMT
Hi Schalk,



On Wed, Nov 11, 2015 at 9:09 PM, Schalk Cronjé <ysb33r@gmail.com> wrote:

> This following code works under 2.3.3, but fails under 2.3.6 - 2.4.5
>
> @EqualsAndHashCode(excludes=['location'])
> @TupleConstructor
> @Sortable(excludes=['location'])
> @ToString
> class Bar implements Comparable {
>
>
           I think @Sortable automatically makes it Comparable. So, we
don't have to "implement" Comparable if we use the @Sortable annotation.
Without the implements Comparable part, this works fine for me on groovy
2.4.5. Thanks


-- 
Thank you
Balachandran Sivakumar

Mime
View raw message