Errata
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 |
---|---|---|---|---|
Page Page 140 The code javathreads.examples.ch05.example1.ScoreLabel |
Assuming Two Threads invoke newCharacter(),may be some error! |
徐小虾 | Nov 02, 2013 | |
Printed | Page 30 2nd paragraph |
The paragraph can easily be (mis)understood as stating that in Example 4 calling the interrupt() method results in the interrupted status being set, even if the thread is blocked by the sleep() method. However, according to the Thread API, the interrupted status is cleared when the sleep() method throws an InterruptedException. |
Anonymous | |
Printed | Page 30 bottom paragraph |
"The character-reading thread still executes the sleep() method, which won't be interrupted (since the main thread has already completed the interrupt() method)". |
Anonymous | |
Printed | Page 36 middle |
While the text states that the method interrupted() simply returns the value of Thread.currentThread().isInterrupted(), the Java API for the Thread class adds that this method also clears the interrupted status. |
Anonymous | |
Printed | Page 62 newCharacter method |
2nd paragraph of p65 says, "in the same order as the newCharacter". |
Anonymous | |
Printed | Page 85 4th paragraph from the bottom |
The lines |
Anonymous | |
Printed | Page 86 First paragraph |
Prior to Java 1.5, the double-checked locking idiom in Java was broken as the author indicated in this paragraph. |
Anonymous | |
Printed | Page 173 4th paragraph |
"to the executing state" should be "to the exiting state". |
Anonymous | |
Printed | Page 196 2nd code segment |
public <V> call( ) throws Execption; |
Anonymous | |
Printed | Page 239 bottom half, handleClient method |
The SocketChannel sc is nonblocking as it is created in the handleServer method on |
Anonymous |