aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Clearing bounded objects? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Clearing bounded objects?" Watch "Clearing bounded objects?" New topic
Author

Clearing bounded objects?

Zhou Can
Ranch Hand

Joined: Sep 12, 2002
Posts: 34
Need i code sth in the server to clear the bounded objects when some client crashed ?
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

Need i code sth in the server to clear the bounded objects when some client crashed ?

I am not sure what "sth" means, but no, you don't need to handle client crashes. Some people chose to implement Undereferenced interface, but it's not going to give you any points, and they may actually penalize you.
Eugene.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Eugene Kononov:
[...] Some people chose to implement Undereferenced interface, but it's not going to give you any points, and they may actually penalize you.
Indeed. It can't be said often enough: adding complexity may well work against you. Stick to the instructions. It should also be said however that adding Unreferenced cleanup may add only a few lines of code (literally three lines for me), and it would take a very pedantic assessor to penalize you for adding a trivial amount of code if it brought significant benefits. And indeed, in my case at least, he certainly didn't penalize me for it.
YMMV. Yet another design decision to make...
- Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clearing bounded objects?