(spec) BufferedWriter.close leaves stream open if close of underlying Writer fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 5.0, 6u24, 6u29, 7
    • Component/s: core-libs
    • None
    • b04
    • generic, x86
    • generic, linux, windows_2000
    • Verified

      This bug is submitted to track a discussion on core-libs-dev:
       http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-January/005732.html

      In summary, BufferedWriter#close will fail with IOException and leave the stream open in the event that the close of the underlying Writer fails. BufferedReader has the same issue.

      A related issue is that FilterOutputStream#close doesn't propogate the exception from the flush if it fails when closing the stream.

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: