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

Introduce test utility for asserting file open status

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      Several tests rely on file system delete semantics (Windows) or the /proc filesystem (Linux) to verify the open status of files opened and closed during the test.

      These mechanisms are blunt, it would be better to have a dedicated API in the test library for verifying that files opened using APIs such as FileInputStream, RandomAccessFile and FileChannel are in an open or closed state.

            eirbjo Eirik Bjørsnøs
            eirbjo Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: