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

Null _file checking in fileStream::flush()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      In the current implementation of fileStream::flush()
      void fileStream::flush() {
        fflush(_file);
      }

      According to some related documents(http://www.cplusplus.com/reference/cstdio/fflush/) if _file is NULL,
      fflush() will flush all open output streams, and _file would be null in some cases.

        Attachments

          Activity

            People

            Assignee:
            ddong Denghui Dong
            Reporter:
            ddong Denghui Dong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: