Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clearing bounded objects?

 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need i code sth in the server to clear the bounded objects when some client crashed ?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic