Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.0.2
-
Component/s: None
-
Labels:None
-
Environment:mac 10.5.2, java 1.5.0_13, grails 1.0
Description
I have a setup similar to as follows:
TopLevelDomainClass
{
SortedSet subLevels
static hasMany= [subLevels:SubLevelDomainClass]
}
SubLevelDomainClass implements Comparable
{
int number
int compareTo(obj)
}
In a gsp or script, sublevel1==sublevel2 calls the compareTo function for evaluation
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
This is the default behaviour of Groovy and has nothing to do with Grails itself, I recommend you raise a question on the Groovy list on how to deal with this