Apr 06
James and co. have released the first JSR based Groovy: groovy-1.0-jsr-01.
Now is the time to go through a bit of pain ;) and migrate old groovy scripts over.
Notable Changes
- Introduction of a def keyword
- Parameter separator in the closure syntax
- Safe navigation
- Property keyword
- Array creation
- float and double notation
- Explicit method pointer syntax
- No ‘do
April 6th, 2005 at 11:57 am
Get ready to keep migrating those scripts over and over again. The JSR-01 release obviously broke all backwards compatibility and requires effectively any Groovy script to be rewritten. But JSR-01 is not the final word, and planned changes in subsequent releases will break your code again :-)
Also keep in mind that the migration page only points out the well-known changes. When they switched from the hand-coded parser to the ANTLR based one they also introduced many small differences that will bite various people over time. Most of them are subtle whitespace differences but there are a few others as well.