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

LauncherImpl inner class catches all exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • Mac OS X 10.6.7
      Java FX 2.0 EA

      We are using the standard Java exception handling mechanism which allows you to install a default exception catcher for uncaught exceptions occurring on a thread using this method

      Thread.setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)

      Even though our default exception handler is installed properly on the thread which Java FX uses to invoke our application's start() method, exceptions which occur in our code never end up at the UncaughtExceptionHandler.

      From the stack trace I can see that our application start() method is invoked by the innerclass LauncherImpl$3 in its run method at line 92. The exception passes through our application start() method but it is caught by Java FX inside LauncherImpl and consequently the Java default exception handling mechanism is incapacitated.

            kcr Kevin Rushforth
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: