• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cleaning up stale locks

 
Richard Walter
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fellow java coders,
I was wondering if anybody has used athe TimerTask class to clean up stale locks. My concern here is that if we use this class then my code will not run on all Java 2 platforms as my specifications state:
"Specifically, you should document clear, simple command lines that allow your programs to be run on ANY Java 2 platform,.."
Does this mean if that my application must run on all Java 2 platforms, or have I misinterptreted the specs. Using TimerTask (as its a 1.3 implementation) does not meet this requirement.
Any thoughts?
Cheers,
Richard
 
Gennady Shapiro
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are right. Any Java 2 platform means the lowest common denominator, which is the earliest version of Java 2.
No is no. (sometimes no is yes, but thats outside of Java world )
That makes a great test case. Download the ealiest Java2 RT and see if your app runs smoothly.
 
Ian B Anderson
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Just to let you know people have passed using TimerTasks etc.
Also in the requirements you are asked the exact version of JDK you used. I suppose the people at Sun make sure they test your app on that version or take it into account.
Ian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic