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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u21, 7u40, 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: