Joint compilation produces:
GMaven stub compilation has the same problem. IDEA stub compilation handles this fine.
On a related note, I'm wondering why stub compilation generates code for private members. Seems like lots of work for nothing to me (e.g. all the internal Groovy stuff). Or is it on purpose, maybe to get an error of the kind "this member is private" when trying to access such a member from Java?