This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java 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]

java/7837: Throwing an exception aborts


>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:


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