-
Bug
-
Resolution: Fixed
-
P1
-
1.1
-
1.1fcs
-
generic, x86
-
generic, windows_95
-
Not verified
The following example program causes the infinite loop in side the system.
Program never comes back after it prints " " on system console.
public class JISCode {
public static void main(String args[0]) {
try {
OutputStreamWriter osw = new OutputStreamWriter(System.out, "JIS");
osw.write(" ");
osw.flush();
osw.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Using ByteArrayOutputStream instead causes OutOfMemoryError.
Program never comes back after it prints " " on system console.
public class JISCode {
public static void main(String args[0]) {
try {
OutputStreamWriter osw = new OutputStreamWriter(System.out, "JIS");
osw.write(" ");
osw.flush();
osw.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Using ByteArrayOutputStream instead causes OutOfMemoryError.
- duplicates
-
JDK-4026912 `javadoc -encoding JIS' never ends.
-
- Closed
-