The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

tjhoo (1) [Avatar] Offline
#1
May I know the Groovy in Action 2nd edition is written for Groovy 1.7 or 1.8?

I guess it is specifically for Groovy 1.8 since I got the error of unable to resolve class groovy.transform.ToString when trying out the example in chapter 9:

@groovy.transform.ToString
class Person {
String first, last
}
HamletDRC (6) [Avatar] Offline
#2
Re: Groovy 1.7.x or 1.8.x?
Yes, this is a Groovy 1.8 feature.

Almost all the classes in groovy.transform are Groovy 1.8.