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 5 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
16
#53040: the receiveWithin call inside getTopStock returns a RuntimeException. See: issues.scala-lang.org/browse/SI-5460 Using: Scala version 2...more...
P1.0
20-Oct-13
38
#40517: The text in chapter: Getting up to speed in Scala (excerpt), page #38, specifies, "So, calling 1 to 3 is equivalent to 1.to(3), but the former...more...
P1.0
20-Aug-09
40

#47936: The words "do for" in the code snippet is overstriked. Is that a typo?--Kirin

P1.0
11-Nov-11
49
#41155: It is not evident (at least not to me) that the Protected.scala examples cannot be run from the interpreter. Since this is the first time in t...more...
P1.0
01-Nov-09
52
#47538: Marker.scala does not compile on Scala 2.9. <console>:10: error: constructor Marker in class Marker cannot be accessed in object Marker ...more...
P1.0
10-Sep-11
61
#47256: The code sample (SensibleTyping/Methods.scala) does not work as either a stand-alone script or when the code is transplanted to a class. In ei...more...
P1.0
08-Jul-11
64
#48066: It seems that in Generics.scala more is shown than is intended. I suspect that var list1 : List[Int] = new ArrayList[Int] was really m...more...
P1.0
28-Nov-11
65
#41988: Footnote 4. reads: "Equivalent Java code will compile with no errors but result in a runtime ClassCastException." I think it is not true. J...more...
P1.0
03-Jan-10
68

#39295: "Unfortunately, the way we’re used to is not a idiomatic way to define methods in Scala."

It should be "an idiomatic way". Notice the "an" vs. "a".--Joey Gibson

B3.0
01-Jun-09
69
#48068: The code for Methods.scala does not work as expected and produces runtime errors, at least with scala 2.9.1 and IcedTea7 2.0 on Ubuntu. Spe...more...
P1.0
29-Nov-11
71

#39631: your where you is appropriate.
"But, your protest, the method is benign."
probably should be...
"But, you protest, the method is benign."--blaine wishart

B3.0
23-Jun-09
84
#40585: The author forgot to include the "var" in front of the repeated "max" example statements. These lines will not execute as written but will af...more...
P1.0
28-Aug-09
88

#39613: "instance given tous" -> "instance given to us"--Kai Virkki

B3.0
23-Jun-09
90

#39614: "in the code previous" -> "in the previous code"--Kai Virkki

B3.0
23-Jun-09
94
#39615: When testing the code examples I noticed that you have to be extra careful to leave an empty line after "def helpAsFriend(friend: Friend) = fr...more...
B3.0
23-Jun-09
97

#46231: The employment application example creates a value with a name of "emplomentApplication". There is a missing Y in this name.

P1.0
13-Jan-11
98

#39616: "val emplomentApplication" -> "val employmentApplication"--Kai Virkki

B3.0
23-Jun-09
111

#42111: The Scala alternate method for foldRight is actually :\ and not \: as written.--rboyd

P1.0
19-Jan-10
111

#41932: 'plus the literal "done."' -> 'plus the literal "done".'
'does not match "done," then' -> 'does not match "done", then'--Jan Voges

P1.0
27-Dec-09
118

#41933: "SYMBOL:PRICE." -> "SYMBOL:PRICE".
--Jan Voges

P1.0
27-Dec-09
119

#41934: "SYMBOL:PRICE." -> "SYMBOL:PRICE".
A running gag ;-) --Jan Voges

P1.0
27-Dec-09
123

#41935: "GOOG," -> "GOOG",
The last for today --Jan Voges

P1.0
27-Dec-09
132
#50414: mailboxSize is never not 0. As I'm still learning Scala, I'm not quite able to figure out why from the source though given this book is now 4...more...
P1.0
25-Dec-12
135

#44002: 10.5: ... about explicitly staring an actor...
should be
... about explicitly starting an actor... --Hans-Peter Keilhofer

P1.0
07-Jul-10
139
#45003: You write, that if the TIMEOUT object is not pattern matched, an exception is thrown. I have tested this with Scala 2.8.0 and there no excepti...more...
P1.0
13-Sep-10
141

#46239: explicitly staring an actor" should be "explicitly starting an actor

P1.0
14-Jan-11
141

#50418: "You can restart the actor, if you like, by calling the start( ) method." - This is not possible.--Robert Slifka

P1.0
28-Dec-12
164

#46010: Text references java.util.AraryList instead of java.util.ArrayList--Jamie Paulson

P1.0
15-Dec-10
170
#46011: In the ExpectExample code snippet, the code comment states that "The above exception is wrong", it seems that this should say "The above expec...more...
P1.0
15-Dec-10
197
#41591: The Code example UsingScala/StockPriceFinder uses java.util.Date().getYear. This method on Date is deprecated and does not return the date in ...more...
P1.0
22-Nov-09