From owner-freebsd-java Sat Mar 11 17:28: 0 2000 Delivered-To: freebsd-java@freebsd.org Received: from smtprch1.nortel.com (smtprch1.nortelnetworks.com [192.135.215.14]) by hub.freebsd.org (Postfix) with ESMTP id 1E2F037BB09 for ; Sat, 11 Mar 2000 17:27:54 -0800 (PST) (envelope-from atrens@nortelnetworks.com) Received: from zmers013 by smtprch1.nortel.com; Sat, 11 Mar 2000 19:27:44 -0600 Received: from hcarp00g.ca.nortel.com by zmers013; Sat, 11 Mar 2000 20:27:17 -0500 Received: from hcarp00g.ca.nortel.com (hcarp00g.ca.nortel.com [47.196.31.114]) by hcarp00g.ca.nortel.com (8.9.3/8.7.3) with ESMTP id UAA01801; Sat, 11 Mar 2000 20:35:59 -0500 (EST) Date: Sat, 11 Mar 2000 20:35:59 -0500 (EST) From: "Andrew Atrens" X-Sender: atrens@hcarp00g.ca.nortel.com Reply-To: "Andrew Atrens" To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: <200003112327.QAA04192@nomad.yogotech.com> 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 This - 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 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