[Bug libgcj/21285] New: gij fails to handle NullPointerException exception
tsv at solvo dot ru
gcc-bugzilla@gcc.gnu.org
Fri Apr 29 14:21:00 GMT 2005
The following simple program prints "Aborted" on linux alpha if it is compiled
to byte code and later executed by "gij". The same program works correctly if
compiled to executable. (ant crashes with segmentation fault, but I could not
provide simple testcase :( ).
gij (GNU libgcj) version 4.0.0 20050423 (Red Hat 4.0.0-1)
glibc 2.3.4
--------------------------------
import java.util.*;
public class Test
{
public static void main(String argv[])
{
Vector a = new Vector();
Vector b = null;
a.add("haha");
b.add("haha");
System.out.println("Test");
}
}
Thank you.
--
Summary: gij fails to handle NullPointerException exception
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tsv at solvo dot ru
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: alpha-redhat-linux
GCC host triplet: alpha-redhat-linux
GCC target triplet: alpha-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21285
More information about the Java-prs
mailing list