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

JSException should conserve the original exception when wrapping it in JS2Java Bridge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u21, 7u40, 8
    • javafx
    • web

      When wrapping an exception thrown from JavaScript2Java Bridge, JSException should conserve the original exception and provide an easy way to access it.
      E. g., it would be logical to store original exception as root cause of JSException, making it accessible through JSException.getCause().

      Please use the attached project to reproduce the issue.
      You can notice from its output that the original exception is used when constructing message, but doesn't participate in stack trace and is not stored as a root cause.

            pbothner Per Bothner (Inactive)
            ilatyshe Irina Grineva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: