We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P1.0, released 9 months 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.

Key: Typo Tech. Error Suggestion Not a problem Next edition

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

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
xvii

#52300: soooo--Shahzad Butt

P1.0
02-Aug-13
xvii
#52335: You list a method for computing a 5% raise on 80,000. That would be 4,000. However, your method is this: Integer.metaClass.percentRaise = {...more...
P1.0
07-Aug-13
xviii

#52305: and memory today than large computers had decades ago.

it should be

and memory today is larger than the large computers had decades ago.

P1.0
02-Aug-13
5
#52316: groovy:000> 'mom'.l ERROR groovy.lang.MissingPropertyException: No such property: l for class: java.lang.String at groovysh_evaluat...more...
P1.0
05-Aug-13
16
#52325: println "groovy -v".execute().text This didn't work for me on Windows 7. I get the following error. Caught: java.io.IOException: Cannot ...more...
P1.0
05-Aug-13
16
#52340: You have an example like this: println "groovy -v".execute().text You say: "This code sample works on Unix-like systems and on Windows...more...
P1.0
07-Aug-13
16
#52350: Instead of the following which doesn't work on windows. println "groovy -v".execute().text The following works on windows 7. since it's a ...more...
P1.0
09-Aug-13
20
#52124: A minor point: On p. 20, you compare a Java class containing main() with a Groovy script. I understand your point that in Groovy you can just...more...
B3.0
05-Jul-13
22
#52342: On this page, you say: "To take advantage of this feature, define the first parameter as a Map." However, it's not clear to me that an...more...
P1.0
08-Aug-13
26
#52348: I recommend an attempt to anticipate how people experiment. For example, on this page, I can try examples like this: def (verbPhrase, dir...more...
P1.0
08-Aug-13
47
#52341: I would consider that some of your readers would experiment and maybe anticipate confusions. For example, on the WhatEquals script, you only...more...
P1.0
08-Aug-13
50

#52388: First paragraph after code block at the top of the page

class name referenced has a typo - Calibrartor instead of Calibrator.
--Shannon Pieper

P1.0
16-Aug-13
70
#76449: Chapter 3: Static Compilation "javac -p NoStaticCompile" Should be "javap -c NoStaticCompile" (ie. the 'p' and 'c' are swapped inc...more...
P1.0
23-Feb-14
74
#52359: This page has the following text: "It stretches its hands and reaches out to the variable product in the scope of the caller of pickEven...more...
P1.0
10-Aug-13
85

#52406: Minor nit - completeOrder() instead of computeOrder() in the first paragraph--Shannon Pieper

P1.0
17-Aug-13
112
#52356: You mention an eachWithIndex method but don't show its usage. Granted, someone can look it up but it wouldn't necessarily hurt to throw one ...more...
P1.0
09-Aug-13
113
#52357: You mention the difference between iterating with each() and collect() but it's mostly words and two disjointed examples. I think it might b...more...
P1.0
09-Aug-13
135
#76562: The MODRANGEOUTPUT of "WorkingWithCollections/CreatingArrayList.groovy" produces a different output other than described in the book. Expec...more...
P1.0
23-Mar-14
141
#52416: Chapter 7 (Exploring the GDK) under section 7.3: Custom Methods Using the Extension Modules. In Extension/FindPrice.groovy, the static and ins...more...
B3.0
18-Aug-13
141
#52462: Possible swapping of instance vs. static methods - just the labeling with the println of which method is static and which is instance. First ...more...
P1.0
25-Aug-13
253

#76493: Last paragraph sentence:
Let’s look at an example of creating XML documents in Groov using a builder:
should have Groovy instead of Groov
--Eugene Masterov

P1.0
07-Mar-14
281
#52353: At this point in the book, when I run the test you have described, it does not pass as this page says it should. Rather I get this: testM...more...
P1.0
09-Aug-13
281
#52354: (I really wish these errata sections had an edit aspect so you can edit your own previous entries.) For the last one I posted on page 281...more...
P1.0
09-Aug-13
400

#52125: No example of main() in Groovy anywhere in the book? Seems like an important omission. --Andrew Binstock

B3.0
05-Jul-13
1741
#76552: Note that the page number (1741) entered is the Kindle edition's Location. In the section about '==' in groovy versus java (WhatEquals.groo...more...
P1.0
20-Mar-14