Errata

Java Performance Tuning

Errata for Java Performance Tuning, Second Edition

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. 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 192

Existing code line:
public static final Class FOO_BAR_CLASSNAME = Class.forName("foo.bar.ClassName");

NOW READS:
public static final Class FOO_BAR_CLASSNAME = foo.bar.ClassName.class;

Text below that (pp. 192-193):
Existing paragraph:
Note that foo.bar.ClassName.class is a valid construct to refer to the
foo.bar.ClassName class object. However, the compiler generates a static
method that calls Class.forName( ) and replaces the
foo.bar.ClassName.class construct with a call to that static method. So
it is better to use the FOO_BAR_CLASSNAME static variable as suggested,
rather than:

NOW READS:
Note that foo.bar.ClassName.class is a valid construct to refer to the
foo.bar.ClassName class object. However, the compiler generates a static
method that calls Class.forName( ) and replaces the
foo.bar.ClassName.class construct with a call to that static method. So
if the contruct will be accessed more than once, it is better
to use the FOO_BAR_CLASSNAME static variable as suggested, rather than:

Anonymous    Oct 01, 2003
Printed
Page 231
code

The code to read a file with Custom-built reader fails if the length of the lines in
the file are longer than buffer size.

Anonymous