small medium large xlarge

Errata for Groovy Recipes

 

The latest version of the book is P1.0, released about 8 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: B1.0 (13-Oct-08)
#35220
Paper page: 0
This issue is on many of the pages in the book (17, 18, 19, ... 181, 203) and is more nit-picky but I noticed that in many (but not all) of the output...more...
  • Reported in: B1.0 (13-Jun-08)
#32381
PDF page: 19

The paragraph at the bottom of page 19 that starts with 'The"blue pill"...' is missing a space between 'The' and '"blue'. Very minor.

  • Reported in: B1.0 (15-Feb-08)
  • Fixed: 21-Apr-08, awaiting book release
#30809
PDF page: 25

$groovy -version did not work (using version 1.5.4)
Had to use
$groovy -v
or
$groovy --version--Subhasish Mukherjee

  • Reported in: B1.0 (20-Oct-09)
#41025
Paper page: 36

3.4 Optional Return Statements
"global warning" instead of "global warming"--Tom Bender

  • Reported in: B1.0 (18-Jan-08)
  • Fixed: 21-Apr-08, awaiting book release
#30511
PDF page: 44
Paper page: 44

global warning should be global warming--Tim Orr

  • Reported in: P1.0 (03-Dec-08)
#36259
PDF page: 52

In the first example of the "Safe Dereferencing" section, the output of s.size() should be 4 not 5.--Jim Goodnow

  • Reported in: P1.0 (30-Apr-10)
#43029
Paper page: 54
// I'm using Groovy Version: 1.7.1 JVM: 1.6.0_18 // this doesn't remove any items from the map // family.remove always returns null when using the G...more...
  • Reported in: P1.0 (07-May-08)
#31921
Paper page: 84

java.io.tmp property doesn't exist. Should be java.io.tmpdir instead.--Leslie Johnson

  • Reported in: B1.0 (12-Feb-08)
  • Fixed: 21-Apr-08, awaiting book release
#30737
PDF page: 109
In Appending data to an existing file this code (before and after the append) println "${file.size()} lines" should be println "${file.readLi...more...
  • Reported in: P1.0 (20-Mar-09)
#38430
PDF page: 121

First sentence. "You still want to know how XmlParser..." should be "You still want to know how XmlSlurper..."

  • Reported in: B1.0 (13-Oct-08)
#35205
Paper page: 121
The last sentence of the second paragraph says, "Therefore, you must trap for it explicitly:" but I thing it should be "Therefore, you must ask for it...more...
  • Reported in: B1.0 (13-Oct-08)
#35206
Paper page: 122
The first (only) sentence of second paragraph says, "... your query results can end up being looking like nonsense ..." and I strongly suspect it shou...more...
  • Reported in: P1.0 (13-Oct-08)
#35207
Paper page: 126
There's a space missing between the end of the first sentence on the page and the start of the second. "... construct a valid GroovyBean from XML.pxml...more...
  • Reported in: B1.0 (13-Oct-08)
#35208
Paper page: 152
The last sentence in the "Building the Query String from a Map" section refers the reader to Section 9.4, "Creating a Convenience QueryString Class" w...more...
  • Reported in: B1.0 (13-Oct-08)
#35211
Paper page: 185
Last sentence of the first paragraph says, "It can yield unpredictable results if the getter or setter is doing anything other than directly setting t...more...
  • Reported in: P1.0 (19-Feb-10)
#42341
Paper page: 196
In the third paragraph, ".bash_rc" should be ".bashrc" (Book version 2008-04-23, P2.0 printing, April 2008. P2.0 was NOT an option in the web form to ...more...
  • Reported in: P1.0 (29-Jul-08)
#33359
Paper page: 212
On section 11.8 in the explanation of the code for the BookController, the text mentions the call to the controller "Bookstore.list" and it should be ...more...
  • Reported in: B1.0 (13-Oct-08)
#35216
Paper page: 222
Last sentence in the first paragraph says, "The value that appears in the combo box is the toString method." Perhaps this should be "The value that a...more...
  • Reported in: B1.0 (13-Oct-08)
#35218
Paper page: 228
The first sentence of the last paragraph in the "Render as XML" section says, "In this example, we'll leave off the parentheses on the render method ....more...
  • Reported in: B1.0 (13-Oct-08)
#35219
Paper page: 236

The first (and only) paragraph on the page is composed of the same five sentences twice.--Burk Hufnagel