GRAILS-1320 is driving me crazy lately. I use SortedSet quite a bit in my app and I hate having to do the workaround for every one I use. Right now the bug isn't on the list for 1.0; is there any chance this can be fixed for
1.0? I'm kinda surprised that more people aren't complaining about this problem, which leads me to ask: am I just doing this wrong (i.e. is there a better way to deal with this problem)?
Should be:
class Foo {
SortedSet bars
static hasMany = [bars:Bar]
}
Instead I have to do:
class Foo {
SortedSet bars = new TreeSet()
static hasMany = [bars:Bar]
public void setBars(Collection c) {
if (c instanceof SortedSet) {
bars = c
} else {
bars = new TreeSet(c)
}
}
}
--
----------------------------------------------------------
Jesse O'Neill-Oine //
jesse@...Refactr LLC //
http://refactr.commobile // 612-670-5037
----------------------------------------------------------