Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page xiii Under "Chapter 4, Functors" subheading, 2nd sentence |
"...predicates, transformers, and closures, and functors,..." |
Anonymous | ||
Printed | Page 5 |
"import org.apache.commons.lang.builder.ToStringBuilder" |
Anonymous | ||
Printed | Page 5 Error in toString() method |
public void toString() { |
Anonymous | ||
Printed | Page 6 Error in toString() method |
public void toString() { |
Anonymous | ||
Printed | Page 10 |
"PoliticalCandidate.class.isAssignableFrom(o)" |
Anonymous | ||
Printed | Page 10 Variable misnamed in code example. |
"PoliticalCandidate pc = (PoliticalCandidate) o;" |
Anonymous | ||
Printed | Page 12 |
"public int compareTo(Object o) {" |
Anonymous | ||
Printed | Page 25 code swatch at the center of page 25 |
Existing example: |
Anonymous | ||
Printed | Page 28 1-16 |
private Flavor(String name, int value) { super( name, value ); } |
Anonymous | ||
Printed | Page 47 Code sample should be completely replaced with the following |
String variables = "{45}, {35}, {120}"; |
Anonymous | ||
Printed | Page 55 Code at top |
The line |
Anonymous | ||
Printed | Page 56 In code listing, |
"countMatches(,"futility")" |
Anonymous | ||
Printed | Page 61 |
The correct Levenshtein distance between "Steve" and "Stereo" is 2. The example output incorrectly lists this as 3. |
Anonymous | ||
Printed | Page 73 Last lines of top code, formatting error |
"This example retrieves the name property of the author property on the Book |
Anonymous | ||
Printed | Page 73 middle of page: |
"General Exception is caught." should not be the first line of the code example and should be removed. |
Anonymous | ||
Printed | Page 78 Paragraph under figure |
The getProperty() method parses the supplied property name, |
Anonymous | ||
Printed | Page 86 |
Levenshtein distance between "Word" and "World" is one. Output incorrectly lists Levenshtein distance as 2. |
Anonymous | ||
Printed | Page 87 the code in the Solution |
in the book: |
Anonymous | ||
Printed | Page 88 There is a missing line, the predicateArray is referenced |
without being defined. The following changes are necessary: |
Anonymous | ||
Printed | Page 94 Code references an unknown variable due to typo. Code should be changed as follows |
BasicDynaClass politicianClass = |
Anonymous | ||
Printed | Page 95 See Also of 3.18 |
The See Also section is incorrect. Those things are not covered in the book. |
Anonymous | ||
Printed | Page 108 Example 4-4 |
Unintended errata: The suit order isn't right for official |
Anonymous | ||
Printed | Page 137 Recipe 5.4 |
Chapter 5, Recipe 5.4 |
Anonymous | ||
Printed | Page 137 Recipe 5.4 / Example 5-1;should be |
public void setIntensity(Float intensity) { this.intensity = intensity; } <--- |
Anonymous | ||
Printed | Page 138 "majorQuakes.hasMore()" should be "majorQuakes.hasNext()" |
Anonymous | |||
Printed | Page 183 Table |
getBooleanBalue should be getBooleanValue |
Anonymous | ||
Printed | Page 229 |
Chapter 8: "There were significant changes between the pre-release |
Anonymous | ||
Printed | Page 256 - 9.3 code example line 11. |
There should not be a semi-colon after the line 10. |
Anonymous | ||
Printed | Page 256 The following line of code should follow |
"opera.setYear(1791);": |
Anonymous | ||
Printed | Page 256 "${opera.language()}" should be "${opera.language}". |
Anonymous | |||
Printed | Page 258 In the sorting example, there is a missing line in the code |
example, which will cause every ball to end up in the Misc-bin. A break |
Anonymous | ||
Printed | Page 258 basket is an undefined variable. |
"sendBall(ball, basket );" |
Anonymous | ||
Printed | Page 290 |
"FileUtils.sizeOfDirectory()" |
Anonymous | ||
Printed | Page 292 Last paragraph |
".htm" is split across lines as if it were ". htm" |
Anonymous | ||
Printed | Page 320 Paragraph under discussion |
MIME is Multipurpose Internet Mail Extensions, not Main Extensions. |
Anonymous | ||
Printed | Page 330 First paragraph |
The sentence |
Anonymous | ||
Printed | Page 341 Paragraph under discussion |
XPath is generally used by select nodes in an XML document... |
Anonymous | ||
Printed | Page 349 line eight of the example is incomplete. |
It reads: |
Anonymous |