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

Fix for RT-33633 breaks the ability for application developers to deal with exceptions properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • Java 8u20 b10

      The fix for bug RT-33633 causes a regression of bug RT-15332.

      I don't think you can consider catching and logging any exception in a listener notification as good error handling practice. It will cause many real bugs to go totally unnoticed.

      In a core architecture like this it is impossible to know the effects of swallowing all exceptions and therefore unecessary to be worrying about notifying the rest of the listeners that are registered. While the FX app thread may not be about to die in these scenarios, as commented in RT-33633, the UncaughtExceptionHandler should still be called since the unexpected exception may render the whole UI corrupt or unstable. The UncaughtExceptionHandler is the only way for an applicaton developer to be notified of unexpected errors so he can notify the user that the application is potentially unstable.

            msladecek Martin Sládeček
            csmithjfx Charles Smith (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: