So, I found this list of reserved words in Groovy, but a few times I’ve run into others that seem to be problematic. Not sure if they are actually “reserved”, or where the conflict is for each, but I know I had problems…
- alternate – so, I had a domain Course, and another domain CourseAlternate to map Courses to Alternate Courses. In CourseAlternate, I named fields “course” and “alternate”, but when I tried to create a new record as new CourseAlternate(course: “x”, alternate: “y”), I got an error. When I changed the field to “alternateCourse” in the CourseAlternate domain, the problem disappeared.
No Comments