This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
java/7837: Throwing an exception aborts
- From: greenrd at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 5 Sep 2002 14:13:32 -0000
- Subject: java/7837: Throwing an exception aborts
- Reply-to: greenrd at hotmail dot com
>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: