-
Bug
-
Resolution: Fixed
-
P3
-
1.1.6, 1.2.0
-
1.2beta4
-
x86, sparc
-
solaris_2.5.1, windows_95
-
Not verified
Name: mgC56079 Date: 04/16/98
---- Here is the test ----
import java.io.FileInputStream;
import java.io.IOException;
public class FIS {
public static void main(String args[]) {
try {
FileInputStream fis = new FileInputStream("FIS.java");
fis.close();
System.out.println(fis.available());
}
catch (IOException e) {
e.printStackTrace();
}
}
}
---- Output on Solaris (correct) ----
% java FIS
java.io.IOException
at java.io.FileInputStream.available(Native Method)
at FIS.main(FIS.java:10)
---- Output on Win95 (wrong) ----
I:\bugs>java -Djava.compiler=NONE FIS
Warning: JIT compiler "NONE" not found. Will use interpreter.
7733632
----
======================================================================
- duplicates
-
JDK-4110173 (hpi) sysAvailable on Win32 has a code path that returns without a return stmt
- Closed