java/7837: Throwing an exception aborts

greenrd@hotmail.com greenrd@hotmail.com
Thu Sep 5 07:16:00 GMT 2002


>Number:         7837
>Category:       java
>Synopsis:       Throwing an exception aborts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 05 07:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     greenrd@hotmail.com
>Release:        3.2
>Organization:
>Environment:
Red Hat Rawhide
>Description:
Even a very simple program which throws an exception, aborts when compiled with gcj 3.2 and run. gcj 3.0 works fine.

import java.io.EOFException;

public class EOF {

  public static void main (String args []) throws Exception {
    try {
      throw new EOFException ();
    }
    catch (Exception ex) {
      System.out.println ("Hello!");
    }
  }

}
>How-To-Repeat:
gcj -o eof -pipe --main=EOF EOF.java
./eof
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list