Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InterruptedException

 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Is everyone ignoring the InterruptedException on a wait() call? That is to say:

Thanks,
Michae Morris
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Michael:
I did not ignore it. I had try and catch block in my lock method as you have mentioned here.
-Bal
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think he meant ignore, to be not putting any code in it's {} part. At least that how I took it.
Mark
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark and Bal,
I meant just not do anything in the catch block as Mark said. Sorry for the confusion.

Michael Morris
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry, it was my bad. My previous statement was not clear. I had following.

If there is any problem I can see it, I can pin point exact location that was my assumption.
-Bal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic