Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Sybex 816 - Chapter 3, page 130, Table 3.7 Map methods, wrong signature of method 'merge'

 
Ranch Hand
Posts: 73
1
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The signature of method merge in the book is:

V merge(K key, V value, Function(<V, V, V> func))

but shoud be:

V merge(K key, V value, BiFunction(<V, V, V> func))


By the way, I like your books, very good explanation. I also read Sybex 815. Thank you.
 
Marshal
Posts: 74693
335
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct, but that problem has been noted already.
 
Rancher
Posts: 4067
56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately, it doesn't seem to have made it to the 816 errata yet: https://www.selikoff.net/ocp11-2/

Incidentally, I tried finding the errata through the links on this page: https://coderanch.com/f/24/java-programmer-OCPJP
- and it looks like the Sybex V8 link goes to "selkoff.net".  Should be Selikoff, no?  

Even with that correction, I didn't find a link to the 816 book from that page.  Finally I used Google to get the link I gave in the first line of this post.
 
author & internet detective
Posts: 40913
840
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I missed it a month ago. Added to the errata. I gave the original poster credit since he saw it first.

Also, I found the "i" that ran away. I think I got it all penned in now.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic