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

LauncherImpl inner class catches all exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac OS X 10.6.7
      Java FX 2.0 EA

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: