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

ASN1Formatter.annotate should not return in the finally block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 17
    • Component/s: other-libs
    • Subcomponent:
    • Resolved In Build:
      b11

      Description


      The return [1] in the finally block will swallow the IOException, which is unexpected.

      [1] https://github.com/openjdk/jdk/blob/master/test/lib/jdk/test/lib/hexdump/ASN1Formatter.java#L120

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: