Developing Java Beans

Errata for Developing Java Beans

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 xi
added a trademark symbol after the first mention of Java

Anonymous    Nov 01, 1997
Printed
Page xii
last line: changed "coves" to "covers"

Anonymous    Nov 01, 1997
Printed
Page xvi
changed "ora.com" to "oreilly.com" in both URLs

Anonymous    Nov 01, 1997
Printed
Page xvi
Changed email from

rob.englander@worldnet.att.net To: rob@mindstrm.com

Anonymous    Nov 01, 1999
Printed
Page xv, xvi

The "How to Contact Us" section was updated to read: "We have tested and verified the information in this book to the best of our ability, but you may find that features have changed (or even that we have made mistakes!). Please let us know about any errors you find, as well as your suggestions for future editions, by writing to: O'Reilly & Associates, Inc. 101 Morris Street Sebastopol, CA 95472 1-800-998-9938 (in the U.S. or Canada) 1-707-829-0515 (international/local) 1-707-829-0104 (FAX) You can also send us messages electronically. To be put on the mailing list or request a catalog, send email to: info@oreilly.com To ask technical questions or comment on the book, send email to: bookquestions@oreilly.com We have a web site for the book, where we'll list examples, errata, and any plans for future editions. You can access this page at: http://www.oreilly.com/catalog/9781565922891/ For more information about this book and others, see the O'Reilly web site: http://www.oreilly.com

Anonymous    May 01, 2000
Printed
Page 20

The second complete sentence in the first paragraph did read: "...other criteria that..." Now reads: "...other criterion that..."

Anonymous    May 01, 2000
Printed
Page 26
Changed

is the base class for all components to: is the base class for many components

Anonymous    Nov 01, 1999
Printed
Page 31
Changed

setLabel(new Integer(count).toString)); to: setLabel(String.valueOf(count));

Anonymous    Nov 01, 1999
Printed
Page 32
Changed

this(``"); to: this("");

Anonymous    Nov 01, 1999
Printed
Page 34
Changed

protected void temperature2Changed(double newTemp); to: protected void temperature2Changed(double newTemp)

Anonymous    Nov 01, 1999
Printed
Page 34
Changed

if (thermometer1 == evt.getSource()) to: if (temperature1 == evt.getSource())

Anonymous    Nov 01, 1999
Printed
Page 35
Changed

if (thermometer2 == evt.getSource()) to: if (temperature2 == evt.getSource())

Anonymous    Nov 01, 1999
Printed
Page 36
In the code, line 2: changed "implements TemperatureChangeListener"

to "implements TempChangeListener"

Anonymous    Nov 01, 1999
Printed
Page 38
The invocation of super() referenced a class variable too early.

Changed TemperatureAdapter1() { super(theTemperature1); } to: TemperatureAdapter1(Temperature t) { super(t); }

Anonymous    Nov 01, 1999
Printed
Page 38
Changed

TemperatureAdapter2() { super(theTemperature2); } to: TemperatureAdapter2(Temperature t) { super(t); }

Anonymous    Nov 01, 1999
Printed
Page 39
Changed

(double newTemp); to (double newTemp)

Anonymous    Nov 01, 1999
Printed
Page 43
Changed

that adapts the TempChangedListener to: that adapts the TempChangeListener

Anonymous    Nov 01, 1999
Printed
Page 45
The method calls must account for the NoSuchMethodException.

Changed tempAdapter.registerEventHandler(theTemperature1, "temperature1Changed"); tempAdapter.registerEventHandler(theTemperature2, "temperature2Changed"); to: try { tempAdapter.registerEventHandler(theTemperature1, "temperature1Changed"); tempAdapter.registerEventHandler(theTemperature2, "temperature2Changed"); } catch (NoSuchMethodException e) { System.out.println(e); }

Anonymous    Nov 01, 1999
Printed
Page 46
Changed

protected void temperature1Changed to: public void temperature1Changed also changed: protected void temperature2Changed to: public void temperature2Changed

Anonymous    Nov 01, 1999
Printed
Page 47
This constructor may throw a ClassNotFoundException. Changed

public GenericButtonAdapter(Object target) to public GenericButtonAdapter(Object target) throws ClassNotFoundException

Anonymous    Nov 01, 1999
Printed
Page 49
next-to-last code example, line -6: changed "MouseEvent" to

"ActionEvent"

Anonymous    Nov 01, 1997
Printed
Page 49
Changed (in all three places)

Button b = e.getSource(); to: Button b = (Button)e.getSource(); also changed: public void handleB3(MouseEvent e) to: public void handleB#(ActionEvent e)

Anonymous    Nov 01, 1999
Printed
Page 51
Changed

evt.getTemperature() > highTemperature) to: evt.getTemperature() > highThreshold)

Anonymous    Nov 01, 1999
Printed
Page 56
Changed

public void pollSent(PollEvent e) to: public synchronized void pollSent(PollEvent e) also changed this.resume(); to: this.notify();

Anonymous    Nov 01, 1999
Printed
Page 57-58
Changed

this.suspend(); to: try { this.wait(); } catch (Exception e) { }

Anonymous    Nov 01, 1999
Printed
Page 61
Changed

theTemperature. addTempChangeListener(this); to: theTemperature.addTempChangeListener(this);

Anonymous    Nov 01, 1999
Printed
Page 68
Changed

PropertyChangedEvent evt = to: PropertyChangeEvent evt = also changed new PropertyChangedEvent to: new PropertyChangeEvent

Anonymous    Nov 01, 1999
Printed
Page 70-71
Eliminate the paragraph starting with "We could reimplement"

and ending with "look like if we did:" and also eliminate the entire code sample on page {71}.

Anonymous   
Printed
Page 75
Add a member to the Thermometer class as follows

protected Temperature theTemperature;

Anonymous   
Printed
Page 75
Changed "constrainedhandler" to "constrainedHandler"

Anonymous    Nov 01, 1999
Printed
Page 76
Changed

our own criteria to: our own criterion

Anonymous    Nov 01, 1999
Printed
Page 76
Changed "constrainedhandler" to "constrainedHandler"

Anonymous    Nov 01, 1999
Printed
Page 76
Changed

throw new PropertyVetoException(); to: PropertyChangeEvent e = new PropertyChangeEvent(this, "MinimumTemperature", null, new Double(newVal)); throw new PropertyVetoException("Bad MinimumTemperature", e);

Anonymous    Nov 01, 1999
Printed
Page 84

The third sentence in the second paragraph did read: "...property of both labels..." Now reads: "...properties of both labels..."

Anonymous    May 01, 2000
Printed
Page 85

Paragraph 2, the last line did read: "...as well their collective state." Now reads: "...as well as their collective state."

Anonymous    May 01, 2000
Printed
Page 113
Changed (2 places): "s.writeObject" to "stream.writeObject"

also, changed "s.readObject" to "stream.readObject"

Anonymous    Nov 01, 1999
Printed
Page 134
Changed 2 occurences of

ARCHIVES to: ARCHIVE

Anonymous    Nov 01, 1999
Printed
Page 134
All instances of the word "tag" have been changed to "attribute" on

this page.

Anonymous    May 01, 2000
Printed
Page 145
Changed

Beans.util.PickleButton to: BeansBook.util.PickleButton

Anonymous    Nov 01, 1999
Printed
Page 153
Changed

java.io.PropertyChangeEvent to: java.beans.PropertyChangeEvent

Anonymous    Nov 01, 1999
Printed
Page 153
Changed

simulator tend to be to: simulator tends to be

Anonymous    Nov 01, 1999
Printed
Page 160
Changed

// boolean bWriteNull to: boolean bWriteNull

Anonymous    Nov 01, 1999
Printed
Page 167

The first line on the page did read: "... kind of user interface. Now reads: "... kind of interesting user interface.

Anonymous    May 01, 2000
Printed
Page 168
Add to the import list

import java.io.*;

Anonymous    Nov 01, 1999
Printed
Page 168
Changed

and ambientTemperature to: and ambientTemp

Anonymous    Nov 01, 1999
Printed
Page 174
Changed

setNeedsCooling((ambientTemp > comfortTemp) && (ambientTemp - comfortTemp >= 1.0)); setNeedsHeating((ambientTemp < comfortTemp) && (comfortTemp - ambientTemp >= 1.0)); to: setNeedsCooling(ambientTemp - comfortTemp >= 1.0); setNeedsHeating(comfortTemp - ambientTemp >= 1.0);

Anonymous    Nov 01, 1999
Printed
Page 175
Changed

new Integer(d.longValue to: new Long(d.longValue

Anonymous    Nov 01, 1999
Printed
Page 181
Changed

setNeedsCooling((ambientTemp > comfortTemp) && (ambientTemp - comfortTemp >= 1.0)); setNeedsHeating((ambientTemp < comfortTemp) && (comfortTemp - ambientTemp >= 1.0)); to: setNeedsCooling(ambientTemp - comfortTemp >= 1.0); setNeedsHeating(comfortTemp - ambientTemp >= 1.0);

Anonymous    Nov 01, 1999
Printed
Page 182
Changed (2 places): "s.writeObject" to "stream.writeObject"; also

changed "if (heatingListeners!= null)" to "if (heatingListeners != null)"

Anonymous    Nov 01, 1999
Printed
Page 183
Changed (2 places): "s.writeObject" to "stream.writeObject"; also

changed "s.readObject" to "stream.readObject"

Anonymous    Nov 01, 1999
Printed
Page 204
The fourth paragraph of the 1997 edition used to read:

java.beans.ProertyDe- scriptor It now reads: java.beans.PropertyDe- scriptor

Anonymous    Oct 01, 2000
Printed
Page 217
Add another catch block

catch (IntrospectionException e) { return null; }

Anonymous   
Printed
Page 254
The last sentence in paragraph two did read: "...that will have,

impact..." Now reads: "...that will have impact..."

Anonymous    May 01, 2000
Printed
Page 258
Changed

temperaturePulse(new TemperaturePulseEvent(null, pulse)); to: temperaturePulse(new TemperaturePulseEvent(this, pulse));

Anonymous    Nov 01, 1999
Printed
Page 258
Removed the sentence

I've passed null as the first parameter to the constructor, indicating that the actual source of the pulse is unknown.

Anonymous    Nov 01, 1999
Printed
Page 299
"About the Author", para. 1 now reads as follows

Rob Englander is the President and Principal Engineer at MindStream Software, Inc., a firm specializing in custom software development in Java and C++ for a wide range of application areas.

Anonymous    Nov 01, 1999