groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schalk Cronjé <ysb...@gmail.com>
Subject Different behaviour for @Sortable 2.3.6+
Date Wed, 11 Nov 2015 15:39:20 GMT
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 {
         String version
         File location
    }

For the failure it complains that "int CompareTo" needs to be 
implemented. I was under the impression that @Sortable adds that method.

-- 
Schalk W. Cronjé
Twitter / Ello / Toeter : @ysb33r


Mime
View raw message