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

return statement in try block with multi-catch causes ClassFormatError

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b109
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: