Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With the 2.0.0 compiler enabled, you can use the @TypeChecked and @CompileStatic annotations and Groovy-Eclipse compiles with them appropriately.  Here is an example from the What's new in Groovy 2.0 article on InfoQ:

TypeChecked

CompileStatic

Image Modified

Image Modified

Also, reconciling (i.e., eager parsing as you type) handles these annotations properly.  So, you get proper affordance when changing int object = new Date() to Date object = new Date():

...