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

Do not fill in the stacktrace of an internal exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P4 P4
    • None
    • 19
    • tools

      Sometimes an exception is retrofitted into a control flow to interrupt it in a way that it wasn't originally designed to be interrupted. Such an exception is an implementation mechanism which never leaves its confinement. Once it is caught, it is thrown away.

      An exception has a stacktrace. Filling in a stacktrace is not free. Filling in a stacktrace that would be unconditionally thrown away seems like a waste.

            prappo Pavel Rappo (Inactive)
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: