• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Sybex 829 - Errata - CH7 - page 379: Note section setNumberEggs

 
Greenhorn
Posts: 2
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Note section in chapter 7 on page 379 refers to "the negative check we did with setNumberEggs()".
The negative check probably referred to was however inside the constructor of the "Crane" class on page 374 which was immutable and therefore didn't contain any setters.

The only usage of "setNumberEggs" I found within the kindle version of the book is in chapter 11 on page 604 as part of the IllegalArgumentException section. This is of course multiple chapters after the appearance of the mentioned note section and "we did" in this context doesn't seem to refer to that method.
 
Marshal
Posts: 79703
381
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch That does sound like an error or at least confusion to me.
 
Koen Weterings
Greenhorn
Posts: 2
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Campbell Ritchie,

Thanks for welcoming me to the Ranch, seems very nice here.

Should I do anything else with this / report it somewhere else or is this the correct place for that?

If you need more information regarding this finding please let me know.

Have a nice day :-)
 
Campbell Ritchie
Marshal
Posts: 79703
381
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Koen Weterings wrote:Hi Campbell Ritchie,

Thanks . . .

That's a pleasure

Should I do anything else with this . . . ? . . .

No. Please wait for Jeanne and Scott to read the post and they will ask for whatever they need.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good eye. I've added this to the errata and credited you. I also gave you a cow here at the Ranch.

The correction is "You might think that you need custom checks for every field in the record, like for numberEggs". At one point we had a method there and then simplified it before publishing. We did not notice the note referred to the original, unpublished code.
 
You can't expect to wield supreme executive power just because
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic