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

return statement in try block with multi-catch causes ClassFormatError

XMLWordPrintable

    • b109
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: