workaround for shitty bug between Groovy and jdk7