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

Improve finalisation for FileInputStream/FileOutputStream/RandomAccessFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 6-pool, 7, 8
    • core-libs
    • None
    • b15
    • generic
    • generic
    • Verified

        Finalisation for FileInputStream/FileOutputStream/RandomAccessFile streams that share the same native FileDescritor needs improvement. Currently a counter is used to keep track of streams which reference the same native FD. A close() on one of the streams means other streams are not properly notified of the event.

        Best approach is to modify fileDescriptor so that FileInputStream/FileOutputStream/RandomAccessFile classes can register with them and ensure streams are correctly closed out at close() time or when finalizer gets to run.

              coffeys Sean Coffey
              coffeys Sean Coffey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: