small medium large xlarge

Errata for Programming Groovy

 

The latest version of the book is P1.0, released over 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: P1.0 (10-Apr-09)
#38828
PDF page: 1
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 entitled...more...
  • Reported in: P1.0 (02-Sep-08)
#34320
Paper page: 37
According to the context and subsequent examples etc. def access(location,weight,fragile) should be def access(weight,location,fragile) ...more...
  • Reported in: P1.0 (26-May-09)
#39252
Paper page: 37
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 k...more...
  • Reported in: P1.0 (12-Aug-08)
#33944
Paper page: 37

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

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

  • Reported in: P1.0 (10-May-09)
#39166
Paper page: 37
Will Krespan's erratum for page 37 is wrong. Venkat clearly states that they are out of order. It was done for illustrative purposes. Furthermore, ...more...
  • Reported in: P1.0 (01-Jun-11)
#47152
PDF page: 39

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

  • Reported in: P1.0 (09-Apr-08)
  • Fixed: 29-Apr-08, awaiting book release
#31635
PDF page: 41
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 to a You...more...
  • Reported in: P1.0 (08-Mar-09)
#38255
Paper page: 44

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

  • Reported in: P1.0 (14-Jun-11)
#47185
PDF page: 47
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 error since...more...
  • Reported in: P1.0 (10-Oct-11)
#47728
PDF page: 49
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 call of t...more...
  • Reported in: P1.0 (10-May-08)
#31961
PDF page: 49

"leads to a problems" should read, "leads to problems"

  • Reported in: P1.0 (25-Apr-08)
  • Fixed: 29-Apr-08, awaiting book release
#31724
PDF page: 66
"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 Top...more...
  • Reported in: P1.0 (22-Jul-09)
#40149
PDF page: 67
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.typehandling....more...
  • Reported in: P1.0 (14-Feb-11)
#46396
PDF page: 68
Executing the code def isPalindrome2(str) { if (str) { str == str.reverse() } else { false } println "mom is palindrome? ${isPalindrome2('m...more...
  • Reported in: P1.0 (28-Mar-11)
#46694
PDF page: 76
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 referred ...more...
  • Reported in: P1.0 (29-Sep-08)
#34669
Paper page: 76

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

  • Reported in: P1.0 (14-Apr-08)
  • Fixed: 29-Apr-08, awaiting book release
#31662
PDF page: 80
Section 4.4: They allow us to agree upon a certain expectations to be fulfilled. should read They allow us to agree upon certain expectations to...more...
  • Reported in: P1.0 (21-Oct-08)
#35381
PDF page: 89

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

BigNumber should be BigDecimal.

  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31499
PDF page: 109

Missing: fix reference to figure here--David Potts

  • Reported in: P1.0 (16-Apr-08)
  • Fixed: 29-Apr-08, awaiting book release
#31676
PDF page: 121

The page ends with

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

That should be

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

--Srivaths Sankaran

  • Reported in: P1.0 (03-Jun-08)
#32254
Paper page: 129
"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 never u...more...
  • Reported in: P1.0 (04-Dec-08)
#36280
Paper page: 149
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 UsingDOMCategor...more...
  • Reported in: P1.0 (23-Nov-10)
#45730
PDF page: 158
dynamic tying should be dynamic typing (line directly af the header "Using XMLParser") Using XMLParser The class groovy.util.XMLParser exploits th...more...
  • Reported in: P1.0 (15-May-08)
#32015
PDF page: 162
The code: langs = ['C++' : 'Stroustrup' , 'Java' : 'Gosling' , 'Lisp' : 'McCarthy' ] xmlDocument = new groovy.xml.StreamingMarkupBuilder().bind { m...more...
  • Reported in: P1.0 (20-Jun-09)
#39577
PDF page: 187
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 that P1....more...
  • Reported in: P1.0 (27-Mar-09)
#38574
Paper page: 197

one more more classes -> one more to.--Jeremy Flowers

  • Reported in: P1.0 (15-Jun-08)
#32394
PDF page: 202
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 guessing the ...more...
  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31500
PDF page: 203
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 are import...more...
  • Reported in: P1.0 (21-Jul-08)
#33091
PDF page: 203
Paper page: 218
I suggest discussing propertyMissing. I tried using method injection based on chapter 14 for a property and wondered why I was not seeing setXXX() and...more...
  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31520
PDF page: 211

Integer.metaClass.static.isEven should be
Integer.metaClass.'static'.isEven--Tim Orr

  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31521
PDF page: 214

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

same issue pages 216-221--Tim Orr

  • Reported in: P1.0 (25-Sep-10)
#45152
PDF page: 228
source code delegateTo.invokeMethod(name, *varArgs) should be delegateTo.invokeMethod(name, varArgs), because the original source code throw ...more...
  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31501
PDF page: 274

Missing: fix the following xref--David Potts

  • Reported in: P1.0 (04-Jul-09)
#39817
Paper page: 284

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

  • Reported in: B2.0 (28-Mar-08)
  • Fixed: 29-Apr-08, awaiting book release
#31502
PDF page: 286

Missing: fix the following xref--David Potts

  • Reported in: B2.0 (02-Aug-09)
#40313
Paper page: 295
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 posted co...more...