Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6319286

(timer) Throw exception on Timer/TimerTask's methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • sparc
    • solaris_10

      A DESCRIPTION OF THE REQUEST :
      Timer's schedule() method or TimerTask's run() method should at most throw an exception.

      JUSTIFICATION :
      I'm calling the schedule method on my program and want the program to halt(cause it's an error) if the algorithm on run() creates an exception. Currently, there's no way for me to do this, except log it.


      CUSTOMER SUBMITTED WORKAROUND :
      I just log the error and hope it won't happen or the users will see the log and manually stop the program

            martin Martin Buchholz
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: