Masters of Doom Groovy JSR Hyperlinked Grammar
Apr 06

Groovy 1.0 JSR 1 Released

Groovy, Tech Add comments

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

One Response to “Groovy 1.0 JSR 1 Released”

  1. Mike Spille Says:

    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.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'