Date: Sat, 11 Mar 2000 20:35:59 -0500 (EST) From: "Andrew Atrens" <atrens@nortelnetworks.com> To: Nate Williams <nate@yogotech.com> Cc: freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe Message-ID: <Pine.BSF.4.21.0003112009190.1015-100000@hcarp00g.ca.nortel.com> In-Reply-To: <200003112327.QAA04192@nomad.yogotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003112009190.1015-100000>