Thank you for purchasing Groovy in Action, 2nd Edition. Please post any errors, other than those listed below, in the book's
Author Online Forum. We'll compile a comprehensive list and publish it here for everyone's convenience. Thank you!
Last updated March 11, 2022
The following corrections were made to the book's reprint in Fall 2021.
-
Page 70, Table 3.5: missing newlines:
The typesetting has changed the formatting of the examples, which are important in this case.
' ' '========== Total: $0.02 ==========' ' '
should be ' ' '
==========
Total: $0.02
==========
' ' '
and"""first $line second $line third
$line"""
should be """
first $line
second $line
third $line
"""
The code as such is not false but without the newlines mostly pointless.
Page 327, Section 10.4:
The phrase "always before optimizing" should be "always measure before optimizing."
Page 497, Section 13.5.2:
In the snippet defining Paul Tergat and his Berlin record, two occurrences of
marathon1
should be record1
Page 517, Table 14.6:
The title's ending
groovy.util.Nod
should be groovy.util.Node.