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)
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)
- links to
-
Review(master) openjdk/jdk/21543