From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13707 invoked by alias); 3 Nov 2002 01:46:02 -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 13623 invoked by uid 71); 3 Nov 2002 01:46:01 -0000 Resent-Date: 3 Nov 2002 01:46:01 -0000 Resent-Message-ID: <20021103014601.13622.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, ebb9@email.byu.edu Received: (qmail 13301 invoked by uid 61); 3 Nov 2002 01:45:55 -0000 Message-Id: <20021103014555.13300.qmail@sources.redhat.com> Date: Sat, 02 Nov 2002 17:46:00 -0000 From: ebb9@email.byu.edu Reply-To: ebb9@email.byu.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/8433: Static initializers must be able to complete normally X-SW-Source: 2002-11/txt/msg00116.txt.bz2 List-Id: >Number: 8433 >Category: java >Synopsis: Static initializers must be able to complete normally >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Sat Nov 02 17:46:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: ebb9@email.byu.edu >Release: gcj (GCC) 3.2 20020818 (prerelease) >Organization: >Environment: Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,ja va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --with out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc -cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd ir=/usr/sbin Thread model: posix gcc version 3.2 20020818 (prerelease) >Description: Java forbids static initializers from not being able to complete normally. These two classes should both cause a compile-time error, but gcj accepts them: class Foo { static { throw new NullPointerException("nope"); } } class Other { static { while (true); } } >How-To-Repeat: Compile the two example classes. It should give two compile errors. >Fix: >Release-Note: >Audit-Trail: >Unformatted: