IntelliJ 10.5.2 produces bad toString() code for Groovy

When generating a toString() method for groovy code IntelliJ produces code in a wierd format and it is also not compilable. Anyone else have this problem? This has actually been a problem in prior version too, but not quite bad. Older versions created code with a wierd format but it at least compiled and a "Code reformat" fixed it up. That is no longer the case

Here is a screen shot, I declared the two properties and then hit ctrl-n (mac keymap) and selected toString(), this is what it produced.

Screen Shot 2011-09-28 at 2.53.50 PM.PNG

Please sign in to leave a comment.