File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes errors in locking code in Trottiers book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "errors in locking code in Trottiers book" Watch "errors in locking code in Trottiers book" New topic
Author

errors in locking code in Trottiers book

joel smither
Ranch Hand

Joined: Jan 01, 2005
Posts: 31
Hi all, I'm been reading Trottier's book "Java 2 Developer - Exam Cram 2".
I've stumbled across some links on the net that state that there are some errors in his locking code (specifically in his implementation of the LockManager) class.


Can anybody be more specific about what those errors are so I can correct the mistakes. I've been unable to find a web-site that has any corrections.

Thanks in advance.
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by joel smither:
Hi all, I'm been reading Trottier's book "Java 2 Developer - Exam Cram 2".
I've stumbled across some links on the net that state that there are some errors in his locking code (specifically in his implementation of the LockManager) class.


Can anybody be more specific about what those errors are so I can correct the mistakes. I've been unable to find a web-site that has any corrections.

Thanks in advance.


The problems with Alain's locking code are described in the replies from Andrew in this thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: errors in locking code in Trottiers book
 
Similar Threads
Record Locking design - any problems with following Monkhouse approach?
httpunits/junits effectively test asp.net apps?
SCJD failed, help needed with locking!
lock and synchronized method
locking and synchronization question