-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2
-
b04
-
x86
-
linux
-
Verified
Name: kaC94536 Date: 11/12/99
The following test crashes Linux VM:
----------------------------- test.java ------------------------
import java.io.CharArrayReader;
public class test {
public static void main(String[] args) {
char[] chars={};
CharArrayReader car;
car = new CharArrayReader(chars);
chars = null;
car = new CharArrayReader(chars);
}
}
-------------------------------- output --------------------------
$ java -fullversion
java full version "1.2.2-RC1"
$ java -Djava.compiler=javacomp -cp . test
Segmentation fault (core dumped)
------------------------------------------------------------------
Being run without JIT VM does everithing well:
-------------------------------- output --------------------------
$ java -cp . test
Warning: JIT compiler "sunwjit" not found. Will use interpreter.
Exception in thread "main" java.lang.NullPointerException:
at java.io.CharArrayReader.<init>(CharArrayReader.java:46)
at test.main(test.java:9)
$
======================================================================
======================================================================