This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/21285] New: gij fails to handle NullPointerException exception
- From: "tsv at solvo dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2005 14:21:00 -0000
- Subject: [Bug libgcj/21285] New: gij fails to handle NullPointerException exception
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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