Minor Errata for


Java Platform Performance Strategies and Tactics

by

Steve Wilson, Jeff Kesselman


This page contains minor errata - mainly typographical errors - in the first printing of the book. You may also want to view the content errata list, especially before you email us about an error.

If you find an error in the book, please check to see if it is already known before reporting it. If you do not find it in the list, please mail us the relevant information, including page numbers. All errata will be fixed in the next possible printing.


Page 44: Section 4.1.2, Custom Buffering
The signatures for the InputStream and OutputStream read and write methods should be:
public abstract int read() throws IOException;
public int read(byte[] buffer) throws IOException;

public abstract void write(int b) throws IOException;
public void write(byte[] b) throws IOException;


Page 83: Section 6.3, Running Multiple Programs
The methods programQuit() and go() need to be synchronized as follows:
public synchronized static void go(final String className);
public synchronized static void programQuit();

Page 99: Section 7.7, Array Mutability
The last line on the page has the wrong array index. It should read:
ShippingInfo.states[4] = "Java City";

Page 60: Section 5.2, What Contributes to Footprint?
The code on the second line has an additional incorrect dash. It should read:
startingMemoryUse) / 100f;

Page 154: Section 10.2, Scalable Components
The code on the thirty first line has an incorrect dash. It should read:
!isSelected && !hasFocus) {