fix compilation error

See https://github.com/grails/grails-core/commit/8ab3c4bf97e3ae035a8852afecd9779459e95358