This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/21285] New: gij fails to handle NullPointerException exception


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]