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

MethodHandles.catchException does not enforce Throwable subtype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      Unlike MethodHandles.throwException, no check is performed in catchException whether the exType argument is indeed an instance of a subclass of Throwable.

        Attachments

          Activity

            People

            Assignee:
            mhaupt Michael Haupt
            Reporter:
            mhaupt Michael Haupt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: