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

FileInputStream.available() fails with "Incorrect function" for "nul" path (win)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • core-libs
    • None
    • In Review
    • generic
    • windows

      jshell> File f = new File("nul")
      f ==> nul

      jshell> InputStream s = new FileInputStream(f)
      s ==> java.io.FileInputStream@7e9a5fbe

      jshell> s.available()
      | Exception java.io.IOException: Incorrect function
      | at FileInputStream.available0 (Native Method)
      | at FileInputStream.available (FileInputStream.java:498)
      | at (#6:1)

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: