Reproduce problem with joint compilation in Groovy