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 about 6 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.

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
1
#38828: I'm reading the mobi version of the book on my kindle, so I don't have a page number. The kindle reports it as location 480-89. The section ...more...
P1.0
10-Apr-09
37

#34320: According to the context and subsequent
examples etc.

def access(location,weight,fragile)

should be

def access(weight,location,fragile)

--will krespan

P1.0
02-Sep-08
37

#39252: I see the point of about the reasoning of the p.37 example.
It would be nice if we could delete our erratum if we made them incorrectly. wk
--will krespan

P1.0
26-May-09
37

#33944: Last paragraph of the page reads: "it leads to a problems, such as when..."

"a problems" is not correct.--Ethan M

P1.0
12-Aug-08
37
#39166: Will Krespan's erratum for page 37 is wrong. Venkat clearly states that they are out of order. It was done for illustrative purposes. Furth...more...
P1.0
10-May-09
39

#47152: Substitute "print()" to println() "The $ in front of the variable it tells the method println( ).." --Giacomo Cosenza

P1.0
01-Jun-11
41
#31635: In comparing Java code to Groovy you use the evocative example of the sword-fight scene from Raiders of the Lost Ark. However your reference ...more...
P1.0
09-Apr-08
44

#38255: In the table "Type x Condition for truth", for Iterator, instead of "has text", it should be "has next", isn't it ?--Enio Pereira

P1.0
08-Mar-09
47
#47185: MacBookPro, snow leopard, Groovy Version: 1.7.6 JVM: 1.6.0_24 on page 47 on pdf, for Car definition, drive() method throws up compilation err...more...
P1.0
14-Jun-11
49
#47728: in the second paragraph after code example. the sentence is not clear. it is said that the first argument is assumed to be a map, but in the c...more...
P1.0
10-Oct-11
49

#31961: "leads to a problems" should read, "leads to problems"

P1.0
10-May-08
66

#31724: "Generics.java:10: cannot find symbol" needs to be "Generics.java:11: cannot find symbol" since line 11 is passing a String to the List.
--Fabian Topfstedt

P1.0
25-Apr-08
67
#40149: Running the code in Groovy I get an error (book says it will run) 1 2 hello Exception in thread "main" org.codehaus.groovy.runtime.typeh...more...
P1.0
22-Jul-09
68
#46396: Executing the code def isPalindrome2(str) { if (str) { str == str.reverse() } else { false } println "mom is palindrome? ${isPalind...more...
P1.0
14-Feb-11
76
#46694: In the C code example provided at the bottom of page 76, the char* argument is referred to as "argv" in the formal parameter list; but it is r...more...
P1.0
28-Mar-11
76

#34669: The text says "BigNumber" instead of "BigDecimal" in the 2nd paragraph (not that I don't wish my raise was a BigNumber...)--Alan Thompson

P1.0
29-Sep-08
80
#31662: Section 4.4: They allow us to agree upon a certain expectations to be fulfilled. should read They allow us to agree upon certain expecta...more...
P1.0
14-Apr-08
89

#35381: 2nd paragraph: "So, the compiler treats the instance of BigNumber as Number."

BigNumber should be BigDecimal.

P1.0
21-Oct-08
109

#31499: Missing: fix reference to figure here--David Potts

B2.0
28-Mar-08
121

#31676: The page ends with

...elegant cousin of '\\d*\\w*"

That should be

...elegant cousin of '\\d*\\w*'

--Srivaths Sankaran

P1.0
16-Apr-08
129
#32254: "Here's an example: friends refers to a map" Friends is a list, not a map. Also, the short names in the list definition (e.g. briang) are...more...
P1.0
03-Jun-08
149
#36280: The code works with 1.5.6, JVM: 1.5.0_17-b04 on Ubuntu 8.10 I haven't found a jvm that works with Groovy 1.5.7. If I use 1.5.7 to run UsingDO...more...
P1.0
04-Dec-08
158
#45730: dynamic tying should be dynamic typing (line directly af the header "Using XMLParser") Using XMLParser The class groovy.util.XMLParser exp...more...
P1.0
23-Nov-10
162
#32015: The code: langs = ['C++' : 'Stroustrup' , 'Java' : 'Gosling' , 'Lisp' : 'McCarthy' ] xmlDocument = new groovy.xml.StreamingMarkupBuilder().b...more...
P1.0
15-May-08
187
#39577: Figure 12.2 has multiple instances of "it's" used as a possessive. Also, my PDF says it is the P2.0 printing, while this errata page says ...more...
P1.0
20-Jun-09
197

#38574: one more more classes -> one more to.--Jeremy Flowers

P1.0
27-Mar-09
202
#32394: 4th paragraph, 1st sentence: "...the names of methods you want to add to one more more classes." The word "more" is repeated twice. I'm guess...more...
P1.0
15-Jun-08
203
#31500: Missing: Please make the sect2’s in this chapter appear in table of contents—I don’t know how to do that, but I think these section titles ar...more...
B2.0
28-Mar-08
203 218
#33091: I suggest discussing propertyMissing. I tried using method injection based on chapter 14 for a property and wondered why I was not seeing setX...more...
P1.0
21-Jul-08
211

#31520: Integer.metaClass.static.isEven should be
Integer.metaClass.'static'.isEven--Tim Orr

B2.0
28-Mar-08
214

#31521: System.out.println at bottom of page where the more consistent println could be used

same issue pages 216-221--Tim Orr

B2.0
28-Mar-08
228
#45152: source code delegateTo.invokeMethod(name, *varArgs) should be delegateTo.invokeMethod(name, varArgs), because the original source code...more...
P1.0
25-Sep-10
274

#31501: Missing: fix the following xref--David Potts

B2.0
28-Mar-08
284

#39817: first line should read: ... of the method at() ...--André

P1.0
04-Jul-09
286

#31502: Missing: fix the following xref--David Potts

B2.0
28-Mar-08
295
#40313: Add 'as' operator to index, as described in section 3.4 on page 39. Glen Smith was discussing this here: grailspodcast.com/episode/68 Have p...more...
B2.0
02-Aug-09