From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14588 invoked by alias); 17 Dec 2002 14:06:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14559 invoked by uid 71); 17 Dec 2002 14:06:04 -0000 Resent-Date: 17 Dec 2002 14:06:04 -0000 Resent-Message-ID: <20021217140604.14558.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, sergio-s-freire@ptinovacao.pt Received: (qmail 12256 invoked by uid 61); 17 Dec 2002 13:58:37 -0000 Message-Id: <20021217135836.12255.qmail@sources.redhat.com> Date: Tue, 17 Dec 2002 06:06:00 -0000 From: sergio-s-freire@ptinovacao.pt Reply-To: sergio-s-freire@ptinovacao.pt To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/8980: NullPointerException not being caught by exception handler X-SW-Source: 2002-12/txt/msg00899.txt.bz2 List-Id: >Number: 8980 >Category: java >Synopsis: NullPointerException not being caught by exception handler >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Dec 17 06:06:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: sergio-s-freire@ptinovacao.pt >Release: gcc-3.2 >Organization: >Environment: i386-redhat-linux (RedHat Linux 8.0, Intel Pentium III) >Description: NullPointerException is not being caught correctly in the following code. Output is 'Exception in thread "main"' instead of 'Works fine'. public class Foo { public static void main(String[] args) { Object nada = null; try { nada.toString(); } catch (Throwable t) { System.out.println("Works fine"); } } } >How-To-Repeat: gcj -c Foo.java && ./a.out >Fix: >Release-Note: >Audit-Trail: >Unformatted: