From owner-freebsd-java Sat Mar 11 19:10:23 2000 Delivered-To: freebsd-java@freebsd.org Received: from axp5.physik.fu-berlin.de (axp5.physik.fu-berlin.de [160.45.34.3]) by hub.freebsd.org (Postfix) with ESMTP id 76B1437BAAC for ; Sat, 11 Mar 2000 19:10:17 -0800 (PST) (envelope-from dieringe@sirius.physik.fu-berlin.de) Received: from sirius.physik.fu-berlin.de (sirius.physik.fu-berlin.de [160.45.34.162]) by axp5.physik.fu-berlin.de (8.9.1a/8.9.1) with ESMTP id EAA06122; Sun, 12 Mar 2000 04:10:15 +0100 (MET) Received: from localhost (dieringe@localhost) by sirius.physik.fu-berlin.de (8.9.1a/8.9.1) with ESMTP id EAA26430; Sun, 12 Mar 2000 04:10:13 +0100 (MET) Date: Sun, 12 Mar 2000 04:10:13 +0100 (MET) From: Martin Dieringer To: Andrew Atrens Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 11 Mar 2000, Andrew Atrens wrote: > FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36 > EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386 > > and this - > > jdk1.1.8_ELF.V1999-11-9.tar.gz FreeBSD 4.0-CURRENT #33 and the same (I think) jdk: same thing, but no problem with TYA 1.6 (J11) Copyright (c) 1997-2000 Albrecht Kleine where the exception is thrown correctly martin > > > This little class tickles the bug - > > > class sigfpe { > > void fpe() { > int a, b; > a = 7; b = 0; > try { > a = a / b; > return; // fail > } catch (java.lang.Exception x) { > // pass > } > return; > } > > public static void main(String[] args) { > sigfpe foo = new sigfpe(); > foo.fpe(); > } > } > > > Andrew. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message