-
Bug
-
Resolution: Fixed
-
P3
-
6
OPERATING SYSTEM(S):
Windows XP
FULL JDK VERSION(S):
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b67)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b67, mixed mode)
DESCRIPTION:
If you run the following test on Java 6, the program gives and outofmemory exception. It should throw a FileNotFound exception
import java.io.FileOutputStream;
import java.io.IOException;
class FileOutputStreamTest {
public static void main (String[] args) {
try {
String tobes = new String();
for (int i =0; i < 65000; i++) {
tobes=tobes + "a";
}
FileOutputStream out = new FileOutputStream(tobes);
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
This problem has started to occur since SunBug 6182812 has been applied.
Windows XP
FULL JDK VERSION(S):
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b67)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b67, mixed mode)
DESCRIPTION:
If you run the following test on Java 6, the program gives and outofmemory exception. It should throw a FileNotFound exception
import java.io.FileOutputStream;
import java.io.IOException;
class FileOutputStreamTest {
public static void main (String[] args) {
try {
String tobes = new String();
for (int i =0; i < 65000; i++) {
tobes=tobes + "a";
}
FileOutputStream out = new FileOutputStream(tobes);
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
This problem has started to occur since SunBug 6182812 has been applied.