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

return statement in try block with multi-catch causes ClassFormatError

    XMLWordPrintable

Details

    • b109
    • generic
    • generic
    • Verified

    Description

      It may be bad form, but a return statement in a try block when using multi-catch compiles, but results in a ClassFormatError at runtime.
      This runs okay when using previous style of catch blocks. See Comments for sample code.

      Attachments

        Activity

          People

            mcimadamore Maurizio Cimadamore
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: