Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5960

VirtualRandomAccessFile.close() is not idempotent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.10.1.1
    • 10.8.3.3, 10.9.2.2, 10.10.1.1
    • Store
    • None

    Description

      If VirtualRandomAccessFile.close() is called more than once, which might happen in code that cleans up after errors, it will throw a NullPointerException. We should make close() idempotent so that it is more robust.

      Attachments

        1. d5960-1a.diff
          4 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: