Errata

Jakarta Commons Cookbook

Errata for Jakarta Commons Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version 7.7
Recipe 7.7

DOMConfiguration has been renamed to XMLConfiguration

Anonymous  Nov 22, 2010 
Printed Page 13
2nd code

"public int compareTo(Object o) {"
should read
"public int compareTo(Object obj) {"

Josivan  Jun 24, 2012 
Printed Page 20
1st code

long[] temps = readTemps();
should read
long[] temperature = readTemps();

Josivan  Jun 24, 2012 
Printed Page 27
3

The paragraph begin with 1975 as year, and end with 2005. What is the correct year?

Josivan de Souza  Jun 25, 2012 
Printed Page 35
code

The latRange and lonRange used to cocat with message string, should be LAT_RANGE and LON_RANGE, as declare above.

Josivan de Souza  Jun 25, 2012 
Printed Page 73
2nd paragraph

In the code sample, the variable name "authorName" is quoted. Therefore, contrary to what the text claims, the code sample would actually print "authorName". The variable name should be unquoted to get the described behavior.

Anonymous  Aug 06, 2008 
Printed Page 120
code

You need return soldier at Transformer code.

Josivan de Souza  Jul 30, 2012 
Printed Page 208
2nd paragraph of the "Discussion" section

Second line has:
- Without this addCharacter( ) object,
should be:
- Without this addCharacter( ) method,

Anonymous   
Printed Page 216
7.6 code listing

remove 2nd right parenthesis while calling getFloat()
and
remove 2nd right parenthesis while calling getList()

Anonymous   
Printed Page 222
Recipe 7.10. Using an Abstract Logging Interface Problem, Solution

import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log

The last line above is missing a terminating semicolon.

Anonymous   
Printed Page 227
last line of page

lof4Jresource
should read:
log4Jresource

Anonymous   
Printed Page 254
Solution

Jexl 1.1 no longer appears to work like this at all. The example
shown will complain that there is a error parsing the expression.
Values from variable names are not surrounded by ${ } .

Anonymous   
Printed Page 295
2nd paragraph

The verb "finds" should be "find".

Anonymous  Aug 11, 2008 
Printed Page 296
2nd code sample

The text claims that the regular expression will return files 'starting with "dev" and ending with ".tld"'. However, the regular expression used reads:

"^dev.*.tld$"

The second dot in this context means "any character", not "dot". Probably the clearest way to rewrite this would be:

"^dev.*[.]tld$"

though there are others.

Anonymous  Aug 11, 2008