fix compilation on Groovy